unable to open a file

unable to open a file

Postby Ehab Samir Aziz » Fri Feb 10, 2006 12:11 am

I executed the batch file for buildH.bat with FW demo so,it was unable to open file C032.obj after the stage of bcc32.exe linking ?
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Postby Ehab Samir Aziz » Fri Feb 10, 2006 12:12 am

I am sorry the file called : c0W32.obj
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Postby Silvio » Fri Feb 10, 2006 8:53 am

is on borland directory

Regards
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Ehab Samir Aziz » Fri Feb 10, 2006 11:46 am

Yes but I tried
set lib=/Path/of/bcc55/lib ,It does not work
I tried
set path=/Path/of/bcc55/lib ,It does not work
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Postby Silvio » Fri Feb 10, 2006 12:41 pm

where is bc55 ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Ehab Samir Aziz » Fri Feb 10, 2006 3:26 pm

bcc55 is located in my Harddrive in e:\compiler\cpp_lang\bcc55
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Postby Ehab Samir Aziz » Fri Feb 10, 2006 3:30 pm

Oka let me show how the build file goes and advice me where to locate the lib of bcc55 command :

@SET INCLUDE=e:\compiler\clipper\fweval\INCLUDE;e:\compiler\clipper\xharbour\include
@SET LIB=e:\compiler\cpp_lang\bcc55\LIB;e:\compiler\clipper\fweval\LIB

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

ECHO Compiling...

@set hdir=e:\compiler\clipper\xHarbour
@set bcdir=e:\compiler\cpp_lang\bcc55\bin
@%hdir%\bin\harbour %1 /n /i..\include;%hdir%\include /p %2 %3 > clip.log
@type clip.log
@IF ERRORLEVEL 1 PAUSE
@IF ERRORLEVEL 1 GOTO EXIT

@echo -O2 -e%1.exe -I%hdir%\include -tW %1.c > b32.bc
@%bcdir%\bcc32 -M -c @b32.bc
@:ENDCOMPILE

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

@echo c0w32.obj + > b32.bc
@echo %1.obj, + >> b32.bc
@echo %1.exe, + >> b32.bc
@echo %1.map, + >> b32.bc
@echo ..\lib\FiveH.lib ..\lib\FiveHC.lib + >> b32.bc
@echo %hdir%\lib\b32\rtl.lib + >> b32.bc
@echo %hdir%\lib\b32\vm.lib + >> b32.bc
@echo %hdir%\lib\b32\gtwin.lib + >> b32.bc
@echo %hdir%\lib\b32\lang.lib + >> b32.bc
@echo %hdir%\lib\b32\macro.lib + >> b32.bc
@echo %hdir%\lib\b32\rdd.lib + >> b32.bc
@echo %hdir%\lib\b32\dbfntx.lib + >> b32.bc
@echo %hdir%\lib\b32\debug.lib + >> b32.bc
@echo %hdir%\lib\b32\common.lib + >> b32.bc
@echo %hdir%\lib\b32\pp.lib + >> b32.bc
@echo %bcdir%\lib\cw32.lib + >> b32.bc
@echo %bcdir%\lib\import32.lib, >> b32.bc
@IF EXIST %1.res echo %1.res >> b32.bc
@%bcdir%\ilink32 -aa -Tpe @b32.bc
@
@IF ERRORLEVEL 1 GOTO LINKERROR
@ECHO * Application successfully built
@ECHO
@
@:LINKERROR
@%1
@rem if exist meminfo.txt notepad meminfo.txt
@rem PAUSE * Linking errors *
@GOTO EXIT
@
@:SYNTAX
@ECHO SYNTAX: Build [Program] {-- No especifiques la extensi¢n PRG
@ECHO {-- Don't specify .PRG extension
@GOTO EXIT
@
@:NOEXIST
@ECHO Not exist the specified PRG
@
@:EXIT
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Postby James Bott » Fri Feb 10, 2006 6:59 pm

Ehab,

Check for a fild called: BCC32.CFG in the BCC55\bin directory. If there isn't one then create one. Put the paths in it similar to this:

-I"c:\bcc55\include;c:\fwh\include;c:\harbour\include"
-L"c:\bcc55\lib"

I had problems with paths until I did this.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 57 guests