Page 1 of 1

Linking Error: Fatal Error cannot open FiveH.lib

PostPosted: Tue Jan 21, 2014 5:41 pm
by Greg Gammon
Trying to compile with new dowload of FWH13x and Harbour 3 using the new BuildH.bat

I have set my paths using Harbour, FWH, and BCC55 but get this error "Cannot open FiveH.lib"

@ECHO OFF
CLS
ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
ECHO ³ FiveWin for Harbour 13.12 - Dec. 2013 Harbour development power ³Ü
ECHO ³ (c) FiveTech, 1993-2013 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8 ³Û
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
rem if "%2" == "/b" set GT=gtwin
rem if not "%2" == "/b" set GT=gtgui
set GT=gtgui

ECHO Compiling...

rem ADDED THESE LINES FROM PREVIOUS WORKING buildh.bat TO try to rectify linkin error
set include=c:\fwh\include;c:\bcc55\include;c:\harbour\include
set lib=c:\fwh\lib;c:\bcc55\lib;c:\harbour\lib
set path=c:\fwh\lib




set hdir=%HBDIR%
set hdirl=%hdir%\lib
set fwh=%FWDIR%
if exist c:\bcc55 set bcdir=c:\bcc55
if exist c:\bcc64 set bcdir=c:\bcc64

%hdir%\bin\harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log 2> warnings.log
if errorlevel 1 goto COMPILEERRORS
@type comp.log
@type warnings.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 -I%bcdir%\include -I%bcdir%\include\windows\sdk %1
rem IF EXIST %1.rc %vcdir%\bin\rc -r -d__FLAT__ %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 %fwh%\lib\FiveHC.lib %fwh%\lib\libmysql.lib %fwh%\lib\libmysqld.lib %fwh%\lib\dolphin.lib + >> b32.bc
echo %hdirl%\hbwin.lib + >> b32.bc
echo %hdirl%\gtwin.lib + >> b32.bc
echo %hdirl%\gtgui.lib + >> b32.bc
echo %hdirl%\hbrtl.lib + >> b32.bc
echo %hdirl%\hbvm.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%\hbcplr.lib + >> b32.bc
echo %hdirl%\hbct.lib + >> b32.bc
echo %hdirl%\hbpcre.lib + >> b32.bc
echo %hdirl%\xhb.lib + >> b32.bc
echo %hdirl%\hbziparc.lib + >> b32.bc
echo %hdirl%\hbmzip.lib + >> b32.bc
echo %hdirl%\hbzlib.lib + >> b32.bc
echo %hdirl%\minizip.lib + >> b32.bc
echo %hdirl%\png.lib + >> b32.bc
echo %hdirl%\hbcurl.lib + >> b32.bc
echo %hdirl%\hbusrrdd.lib + >> b32.bc
echo %fwh%\lib\libcurl.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

rem echo %fwh%\lib\dolphin.lib + >> b32.bc
rem echo %fwh%\lib\libmysql.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\ws2_32.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
echo %bcdir%\lib\psdk\msimg32.lib + >> b32.bc
echo %bcdir%\lib\psdk\psapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\rasapi32.lib + >> b32.bc
echo %bcdir%\lib\psdk\gdiplus.lib + >> b32.bc
echo %bcdir%\lib\psdk\shell32.lib, >> b32.bc

IF EXIST %1.res echo %1.res >> b32.bc
if %GT% == gtwin %bcdir%\bin\ilink32 -Gn -Tpe -s @b32.bc
IF ERRORLEVEL 1 GOTO LINKERROR
if %GT% == gtgui %bcdir%\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
IF ERRORLEVEL 1 GOTO LINKERROR
ECHO * Application successfully built *
rem signtool.exe sign /fd sha256 %1.exe
%1
GOTO EXIT
ECHO

rem delete temporary files
@del %1.c

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

:LINKERROR
ECHO * Linking errors *
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

Re: Linking Error: Fatal Error cannot open FiveH.lib

PostPosted: Tue Jan 21, 2014 8:57 pm
by Antonio Linares
Greg,

Do you have fiveh.lib located at c:\fwh\lib ?

Re: Linking Error: Fatal Error cannot open FiveH.lib

PostPosted: Tue Jan 21, 2014 9:28 pm
by Greg Gammon
Antonio,
Yes, checked that first...also checked to see if the file might be "locked" or unreadable and it seems fine as well.
G

Re: Linking Error: Fatal Error cannot open FiveH.lib

PostPosted: Tue Jan 21, 2014 9:31 pm
by Antonio Linares
Greg,

In samples\buildh.bat please replace in this line:

echo %fwh%\lib\FiveH.lib %fwh%\lib\FiveHC.lib %fwh%\lib\libmysql.lib %fwh%\lib\libmysqld.lib %fwh%\lib\dolphin.lib + >>

the absolute path:

echo c:\fwh\lib\FiveH.lib c:\fwh\lib\FiveHC.lib c:\fwh\lib\libmysql.lib c:\fwh\lib\libmysqld.lib c:\fwh\lib\dolphin.lib + >>

and try it again, thanks

Re: Linking Error: Fatal Error cannot open FiveH.lib

PostPosted: Tue Jan 21, 2014 10:00 pm
by Greg Gammon
Partially fixed...now has Fatal Error cannot open file "LIBCURL.LIB"

Re: Linking Error: Fatal Error cannot open FiveH.lib

PostPosted: Tue Jan 21, 2014 10:14 pm
by Greg Gammon
I replaced all the %... directory references for harbour to absolute directories and that solves that issue.

Now the issue is BCC...I have BCC5.5 and it does not have the file GDIPLUS.lib in the PSDK folder...it does have GDI32.lib so I changed that reference. Any problem with that?

Re: Linking Error: Fatal Error cannot open FiveH.lib

PostPosted: Tue Jan 21, 2014 10:20 pm
by Greg Gammon
And lastly...it ALMOST works but has an unresolved external referring to CurDrive()...I assume that is an obsolete function? Is there something I can change this to:
Code: Select all  Expand view
    REDEFINE BUTTON oBtn2 ID 1003 ACTION (oDbf:Customer := ALLTRIM( cGetDir( "Select a directory",;
           CurDrive() + ":\" + GetCurDir() ) ), oGet1:refresh() )
    REDEFINE BUTTON oBtn3 ID 1005 ACTION (oDbf:Estimate := ALLTRIM( cGetDir( "
Select a directory",;
           CurDrive() + "
:\" + GetCurDir() ) ), oGet2:refresh() )   

Re: Linking Error: Fatal Error cannot open FiveH.lib

PostPosted: Tue Jan 21, 2014 10:28 pm
by cnavarro
HB_CURDRIVE()

Re: Linking Error: Fatal Error cannot open FiveH.lib

PostPosted: Tue Jan 21, 2014 11:52 pm
by Greg Gammon
Perfect....Thanks for all your help Christobal! :)

Everything seems to be compiling now...just have to work through some run-time stuff as expected.

thanks all...
Greg