New on harbour

New on harbour

Postby patili » Sun Nov 02, 2008 10:41 pm

Hi i just begin my migration from FiveWin Clipper to Harbour and i have soon many errors
It seems the compilation work good ,but not the linking process:

Error: Unresolved external '_hb_vmProcessSymbolsEx' referenced from E:\FWH\LIB\FIVEH.LIB|ERRSYSW
Error: Unresolved external '_hb_sxDeCrypt' referenced from E:\HARBOUR\LIB\RDD.LIB|dbf1
Error: Unresolved external '_hb_sxPtoD' referenced from E:\HARBOUR\LIB\RDD.LIB|dbf1
Error: Unresolved external '_hb_sxDtoP' referenced from E:\HARBOUR\LIB\RDD.LIB|dbf1
Error: Unresolved external '_hb_sxEnCrypt' referenced from E:\HARBOUR\LIB\RDD.LIB|dbf1
Error: Unresolved external '_HB_FUN___DBGVMSTKLCOUNT' referenced from E:\FWH\LIB\FIVEH.LIB|HARBOUR
Error: Unresolved external '_HB_FUN___DBGVMPARLLIST' referenced from E:\FWH\LIB\FIVEH.LIB|HARBOUR
Error: Unresolved external '_HB_FUN___DBGVMVARLGET' referenced from E:\FWH\LIB\FIVEH.LIB|HARBOUR
Error: Unresolved external '_HB_FUN___DBGVMVARSLEN' referenced from E:\FWH\LIB\FIVEH.LIB|HARBOUR
Error: Unresolved external '_HB_FUN_LOADLIBRARY' referenced from E:\FWH\LIB\FIVEH.LIB|HARBOUR
Error: Unresolved external '_HB_FUN_FREELIBRARY' referenced from E:\FWH\LIB\FIVEH.LIB|HARBOUR
Error: Unresolved external 'AlphaBlend' referenced from E:\FWH\LIB\FIVEHC.LIB|BRUSHES
Error: Unresolved external '_hb_vmPushEvalSym' referenced from E:\FWH\LIB\FIVEHC.LIB|CTRLDRAW
Error: Unresolved external '_hb_objHasMessage' referenced from E:\FWH\LIB\FIVEHC.LIB|FFDLGPRC
Error: Unresolved external '_HB_FUN_HB_GT_GUI_DEFAULT' referenced from E:\FWH\LIB\FIVEH.LIB|ERRSYSW
Error: Unresolved external '_HB_FUN_DBPACK' referenced from E:\FWH\LIB\FIVEH.LIB|DATABASE
Error: Unresolved external '_HB_FUN_DBZAP' referenced from E:\FWH\LIB\FIVEH.LIB|DATABASE
Error: Unresolved external '_HB_FUN_LSAVEOBJECT' referenced from E:\TITUS\PRG\TITUS.OBJ
Error: Unresolved external '_HB_FUN_SX_SETSCOPE' referenced from E:\TITUS\PRG\CLIENTS.OBJ
Error: Unresolved external '_HB_FUN_RESIZEDLG' referenced from E:\TITUS\PRG\CLIENTS.OBJ
Error: Unresolved external '_HB_FUN_SX_CLRSCOPE' referenced from E:\TITUS\PRG\CLIENTS.OBJ
Error: Unresolved external '_HB_FUN_REFAIT' referenced from E:\TITUS\PRG\ANALYSES.OBJ
Error: Unresolved external '_HB_FUN_SX_KEYCOUNT' referenced from E:\TITUS\PRG\FICHE.OBJ
Error: Unresolved external '_HB_FUN_SALAIRE' referenced from E:\TITUS\PRG\TITUS.OBJ





Thanks for your help
User avatar
patili
 
Posts: 98
Joined: Mon Jan 23, 2006 9:34 am
Location: LE CREUSOT FRANCE

Postby Antonio Linares » Sun Nov 02, 2008 11:05 pm

Patrick,

You have to link these libraries from Harbour:

HBSIX.lib
HBW32.lib
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby patili » Sun Nov 02, 2008 11:13 pm

it's better

Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_hb_vmProcessSymbolsEx' referenced from E:\FWH\LIB\FIVEH.LIB|ERRSYSW
Error: Unresolved external '_HB_FUN___DBGVMSTKLCOUNT' referenced from E:\FWH\LIB\FIVEH.LIB|HARBOUR
Error: Unresolved external '_HB_FUN___DBGVMPARLLIST' referenced from E:\FWH\LIB\FIVEH.LIB|HARBOUR
Error: Unresolved external '_HB_FUN___DBGVMVARLGET' referenced from E:\FWH\LIB\FIVEH.LIB|HARBOUR
Error: Unresolved external '_HB_FUN___DBGVMVARSLEN' referenced from E:\FWH\LIB\FIVEH.LIB|HARBOUR
Error: Unresolved external '_hb_itemUnShareString' referenced from E:\HARBOUR\LIB\HBW32.LIB|win_dll
Error: Unresolved external '_hb_storclen_buffer' referenced from E:\HARBOUR\LIB\HBW32.LIB|win_dll
Error: Unresolved external '_hb_retptrGC' referenced from E:\HARBOUR\LIB\HBW32.LIB|win_dll
Error: Unresolved external 'AlphaBlend' referenced from E:\FWH\LIB\FIVEHC.LIB|BRUSHES
Error: Unresolved external '_hb_vmPushEvalSym' referenced from E:\FWH\LIB\FIVEHC.LIB|CTRLDRAW
Error: Unresolved external '_hb_objHasMessage' referenced from E:\FWH\LIB\FIVEHC.LIB|FFDLGPRC
Error: Unresolved external '_HB_FUN_HB_GT_GUI_DEFAULT' referenced from E:\FWH\LIB\FIVEH.LIB|ERRSYSW
Error: Unresolved external '_HB_FUN_DBPACK' referenced from E:\FWH\LIB\FIVEH.LIB|DATABASE
Error: Unresolved external '_HB_FUN_DBZAP' referenced from E:\FWH\LIB\FIVEH.LIB|DATABASE
Error: Unresolved external '_HB_FUN_LSAVEOBJECT' referenced from E:\TITUS\PRG\TITUS.OBJ
Error: Unresolved external '_hb_itemReturnRelease' referenced from E:\HARBOUR\LIB\HBSIX.LIB|sxord
Error: Unresolved external '_HB_FUN_RESIZEDLG' referenced from E:\TITUS\PRG\CLIENTS.OBJ
Error: Unresolved external '_HB_FUN_REFAIT' referenced from E:\TITUS\PRG\ANALYSES.OBJ
Error: Unresolved external '_HB_FUN_SALAIRE' referenced from E:\TITUS\PRG\TITUS.OBJ
User avatar
patili
 
Posts: 98
Joined: Mon Jan 23, 2006 9:34 am
Location: LE CREUSOT FRANCE

Postby Antonio Linares » Sun Nov 02, 2008 11:15 pm

Patrick,

Please check that you are using the most recent Harbour build that we have published (the one that we provide from our private FTP).

You can also download it from here:
www.fivetechsoft.com/files/harbour.exe

Please check that you don't have other Harbour versions in your computer.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Sun Nov 02, 2008 11:16 pm

You also have to link this library from Borland:

c:\bcc55\lib\psdk\msimg32.lib
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby patili » Sun Nov 02, 2008 11:23 pm

i use Harbour 1.0.1dev Intl. (Rev; 9361)
User avatar
patili
 
Posts: 98
Joined: Mon Jan 23, 2006 9:34 am
Location: LE CREUSOT FRANCE

Postby patili » Sun Nov 02, 2008 11:26 pm

I link msimg32.lib and it's the same
User avatar
patili
 
Posts: 98
Joined: Mon Jan 23, 2006 9:34 am
Location: LE CREUSOT FRANCE

Postby Antonio Linares » Sun Nov 02, 2008 11:38 pm

Patrick,

Lets start from the beginning :-)

Please go to c:\FWH\samples, edit buildh.bat with your paths and then do:

buildh.bat tutor02

It should build a window and run it.

Please test it so we know that you environment is properly set, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby patili » Mon Nov 03, 2008 9:30 pm

Hi antonio
here is my build.bat

@ECHO OFF
CLS
ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
ECHO ³ FiveWin for Harbour 8.10 - Oct. 2008 Harbour development power ³Ü
ECHO ³ (c) FiveTech, 1993-2008 for Microsoft Windows 9X/NT/200X/ME/XP/Vista ³Û
ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ
ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß

if A%1 == A GOTO :SINTAX
if NOT EXIST %1.prg GOTO :NOEXIST

if "%FWDIR%" == "" set FWDIR=c:\fwh
if "%HBDIR%" == "" set HBDIR=c:\harbour
if "%2" == "/b" set GT=gtwin
if not "%2" == "/b" set GT=gtgui

ECHO Compiling...

set hdir=%HBDIR%
set hdirl=%hdir%\lib
set fwh=%FWDIR%
set bcdir=c:\Borland\BCC55

%hdir%\bin\harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log
IF ERRORLEVEL 1 GOTO COMPILEERRORS
@type comp.log




echo -O2 -e%1.exe -I%hdir%\include -I%bcdir%\include %1.c > b32.bc

%bcdir%\bin\bcc32 -M -c @b32.bc



:ENDCOMPILE

IF EXIST %1.rc %bcdir%\bin\brc32 -r %1

echo %bcdir%\lib\c0w32.obj + > b32.bc
echo %1.obj, + >> b32.bc
echo %1.exe, + >> b32.bc
echo %1.map, + >> b32.bc
echo %fwh%\lib\FiveH.lib + >> b32.bc
ECHO %fwh%\lib\FiveHC.lib + >> b32.bc
echo %hdirl%\hbrtl.lib + >> b32.bc
echo %hdirl%\hbvm.lib + >> b32.bc
echo %hdirl%\%GT%.lib + >> b32.bc
echo %hdirl%\hblang.lib + >> b32.bc
echo %hdirl%\hbmacro.lib + >> b32.bc
echo %hdirl%\hbrdd.lib + >> b32.bc
echo %hdirl%\rddntx.lib + >> b32.bc
echo %hdirl%\rddcdx.lib + >> b32.bc
echo %hdirl%\rddfpt.lib + >> b32.bc
echo %hdirl%\hbsix.lib + >> b32.bc
echo %hdirl%\hbdebug.lib + >> b32.bc
echo %hdirl%\hbcommon.lib + >> b32.bc
echo %hdirl%\hbpp.lib + >> b32.bc
echo %hdirl%\hbcpage.lib + >> b32.bc
echo %hdirl%\hbw32.lib + >> b32.bc

rem Uncomment these two lines to use Advantage RDD
rem echo %hdirl%\rddads.lib + >> b32.bc
rem echo %hdirl%\Ace32.lib + >> b32.bc

echo %bcdir%\Lib\cw32.lib + >> b32.bc
echo %bcdir%\Lib\uuid.lib + >> b32.bc
echo %bcdir%\Lib\import32.lib + >> b32.bc
echo %bcdir%\Lib\psdk\odbc32.lib + >> b32.bc
echo %bcdir%\Lib\psdk\nddeapi.lib + >> b32.bc
echo %bcdir%\Lib\psdk\iphlpapi.lib + >> b32.bc
rem echo %bcdir%\Lib\psdk\msimg32.lib + >> b32.bc
echo %bcdir%\Lib\psdk\rasapi32.lib, >> b32.bc

IF EXIST %1.res echo %1.res >> b32.bc


if %GT% == gtwin %bcdir%\bin\ilink32 -L%bcdir%\Lib -Tpe -s @b32.bc
IF ERRORLEVEL 1 GOTO LINKERROR

if %GT% == gtgui %bcdir%\bin\ilink32 -L%bcdir%\Lib -Gn -aa -Tpe -s @b32.bc
IF ERRORLEVEL 1 GOTO LINKERROR

pause

ECHO * Application successfully built *
%1
GOTO EXIT
ECHO

rem delete temporary files
@del %1.c

:COMPILEERRORS
@type comp.log
ECHO * Compile errors *
GOTO EXIT

:LINKERROR
ECHO * Linking errors *
pause
GOTO EXIT

:SINTAX
ECHO SYNTAX: Build [Program] {-- No especifiques la extensi¢n PRG
ECHO {-- Don't specify .PRG extension
GOTO EXIT

:NOEXIST
ECHO The specified PRG %1 does not exist

:EXIT




and here is the result

+----------------------------------------------------------------------------+
¦ FiveWin for Harbour 8.10 - Oct. 2008 Harbour development power ¦_
¦ (c) FiveTech, 1993-2008 for Microsoft Windows 9X/NT/200X/ME/XP/Vista ¦¦
+----------------------------------------------------------------------------+¦
  ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Compiling...
Harbour 1.0.1dev Intl. (Rev. 9361)
Copyright (c) 1999-2008, http://www.harbour-project.org/
Compiling 'tutor02.prg' and generating preprocessed output to 'tutor02.ppo'...
Lines 3606, Functions/Procedures 2
Generating C source output to 'tutor02.c'... Done.
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
tutor02.c:
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external 'AlphaBlend' referenced from C:\FWH\LIB\FIVEHC.LIB|BR
USHES
* Linking errors *
Appuyez sur une touche pour continuer...
User avatar
patili
 
Posts: 98
Joined: Mon Jan 23, 2006 9:34 am
Location: LE CREUSOT FRANCE

Postby Antonio Linares » Mon Nov 03, 2008 9:44 pm

Patrick,

Please uncomment this line from buildh.bat:

rem echo %bcdir%\Lib\psdk\msimg32.lib + >> b32.bc

==>

echo %bcdir%\Lib\psdk\msimg32.lib + >> b32.bc
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby patili » Mon Nov 03, 2008 9:55 pm

Ok now i have that

Compiling...
Harbour 1.0.1dev Intl. (Rev. 9361)
Copyright (c) 1999-2008, http://www.harbour-project.org/
Compiling 'tutor02.prg' and generating preprocessed output to 'tutor02.ppo'...
Lines 3606, Functions/Procedures 2
Generating C source output to 'tutor02.c'... Done.
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
tutor02.c:
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: 'C:\BORLAND\BCC55\LIB\PSDK\MSIMG32.LIB' contains invalid OMF record, type
0x0d
* Linking errors *
Appuyez sur une touche pour continuer...
User avatar
patili
 
Posts: 98
Joined: Mon Jan 23, 2006 9:34 am
Location: LE CREUSOT FRANCE

Postby Antonio Linares » Mon Nov 03, 2008 9:59 pm

Patrick,

It seems as your Borland msimg32.lib is corrupted.

Please replace it with this one:
http://rapidshare.com/files/160393010/msimg32.zip.html
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby patili » Mon Nov 03, 2008 10:07 pm

Yeahh I have a wonderfull "Hello world" in a "Welcome to FiveWin for Harbour" window
User avatar
patili
 
Posts: 98
Joined: Mon Jan 23, 2006 9:34 am
Location: LE CREUSOT FRANCE

Postby Antonio Linares » Mon Nov 03, 2008 10:10 pm

Patrick,

Welcome to the 32 bits world :-)

Now lets go to build your application...
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby patili » Mon Nov 03, 2008 10:17 pm

in my build i will replace

%hdir%\bin\harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log

with
%hdir%\bin\harbour PRG1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log
%hdir%\bin\harbour PRG2 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log
ETC ETC

AND

echo %1.obj, + >> b32.bc
echo %1.exe, + >> b32.bc
echo %1.map, + >> b32.bc




WITH


echo PRG1.obj, + >> b32.bc
echo PRG2.obj, + >> b32.bc
echo PRG3.obj, + >> b32.bc
ETC ETC
echo NAMEPROJECT.exe, + >> b32.bc
echo NAMEPROJECT;map, + >> b32.bc

AND IT WILL WORK?
User avatar
patili
 
Posts: 98
Joined: Mon Jan 23, 2006 9:34 am
Location: LE CREUSOT FRANCE

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 93 guests