unable to open a file

Post Reply
Ehab Samir Aziz
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

unable to open a file

Post by Ehab Samir Aziz »

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

Post by Ehab Samir Aziz »

I am sorry the file called : c0W32.obj
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

is on borland directory

Regards
Ehab Samir Aziz
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Post by Ehab Samir Aziz »

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
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

where is bc55 ?
Best Regards, Saludos

Falconi Silvio
Ehab Samir Aziz
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Post by Ehab Samir Aziz »

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

Post by Ehab Samir Aziz »

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
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

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
Post Reply