To Antonio:

To Antonio:

Postby HunterEC » Mon Nov 11, 2013 6:17 am

Antonio:

Using the following make file I got all sort of errors (PATHs are correct):
If you have a simpler make file (for compiling 2 PRGs), it is very welcome !
Code: Select all  Expand view
#Borland make sample, (c) FiveTech Software 2005-2009

HBDIR=e:\Comp\harbourB
BCDIR=e:\Comp\Borland\bcc582
FWDIR=e:\comp\fwh\

#change these paths as needed
.path.OBJ = .\obj
.path.PRG = .\
.path.CH  = $(FWDIR)\include;$(HBDIR)\include
.path.C   = .\
.path.rc  = .\

#important: Use Uppercase for filenames extensions, in the next two rules!

PRG =        \
ERRSYSW.PRG    \
UPD1309.PRG

#C =          \
#two.C

PROJECT    : UPD1309.EXE

UPD1309.EXE  : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ) upd1309.res
   echo off
   echo $(BCDIR)\lib\c0w32.obj + > b32.bc
   echo obj\upd1309.obj obj\errsysw.obj, + >> b32.bc
   echo UPD1309.EXE, + >> b32.bc
   echo UPD1309.map, + >> b32.bc
   echo $(FWDIR)\lib\FiveH.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc
   echo $(HBDIR)\lib\hbrtl.lib + >> b32.bc
   echo $(HBDIR)\lib\hbvm.lib + >> b32.bc
   echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
   echo $(HBDIR)\lib\hblang.lib + >> b32.bc
   echo $(HBDIR)\lib\hbmacro.lib + >> b32.bc
   echo $(HBDIR)\lib\hbrdd.lib + >> b32.bc
   echo $(HBDIR)\lib\rddntx.lib + >> b32.bc
   echo $(HBDIR)\lib\rddcdx.lib + >> b32.bc
   echo $(HBDIR)\lib\rddfpt.lib + >> b32.bc
   echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
   echo $(HBDIR)\lib\hbdebug.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcommon.lib + >> b32.bc
   echo $(HBDIR)\lib\hbpp.lib + >> b32.bc
   echo $(HBDIR)\lib\hbwin.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcpage.lib + >> b32.bc
   echo $(HBDIR)\lib\hbct.lib + >> b32.bc

   rem Uncomment these two lines to use Advantage RDD
   rem echo $(HBDIR)\lib\rddads.lib + >> b32.bc
   rem echo $(HBDIR)\lib\Ace32.lib + >> b32.bc

   echo $(BCDIR)\lib\cw32.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
   echo $(BCDIR)\lib\psdk\msimg32.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\rasapi32.lib, >> b32.bc

   IF EXIST upd1309.res echo upd1309.res >> b32.bc
   $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
   del b32.bc

.PRG.OBJ:
  $(HBDIR)\bin\harbour $< /L /N /W /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include
  $(BCDIR)\bin\bcc32 -c -tWM -I$(HBDIR)\include -oobj\$& obj\$&.c

.C.OBJ:
  echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp
  echo -I$(HBDIR)\include;$(FWDIR)\include >> tmp
  $(BCDIR)\bin\bcc32 -oobj\$& @tmp $&.c
  del tmp

upd1309.res : upd1309.rc
  $(BCDIR)\bin\brc32.exe -r upd1309.rc
 


ERRORS:

Code: Select all  Expand view
MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
        e:\Comp\harbourB\bin\harbour .\ERRSYSW.PRG /L /N /W /Oobj\ /Ie:\comp\fwh
\include;e:\Comp\harbourB\include
Harbour 3.2.0dev (r1306132159)
Copyright (c) 1999-2013, http://harbour-project.org/
Compiling '.\ERRSYSW.PRG'...
Lines 4366, Functions/Procedures 12
Generating C source output to 'obj\ERRSYSW.c'... Done.
        e:\Comp\Borland\bcc582\bin\bcc32 -c -tWM -Ie:\Comp\harbourB\include -oob
j\ERRSYSW obj\ERRSYSW.c
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
obj\ERRSYSW.c:
Error E2209 e:\Comp\harbourB\include\hbdefs.h 52: Unable to open include file 's
tdarg.h'

Error E2209 e:\Comp\harbourB\include\hbdefs.h 53: Unable to open include file 's
tdio.h'

Error E2209 e:\Comp\harbourB\include\hbdefs.h 54: Unable to open include file 's
tdlib.h'

Error E2209 e:\Comp\harbourB\include\hbdefs.h 55: Unable to open include file 's
tring.h'

Error E2209 e:\Comp\harbourB\include\hbdefs.h 56: Unable to open include file 'l
imits.h'

Error E2209 e:\Comp\harbourB\include\hbdefs.h 75: Unable to open include file 's
tdint.h'

Warning W8017 e:\Comp\harbourB\include\hbdefs.h 523: Redefinition of 'HB_LONG_LE
NGTH'
is not identical
Error E2257 e:\Comp\harbourB\include\hbdefs.h 554: , expected
Error E2257 e:\Comp\harbourB\include\hbdefs.h 609: , expected
Error E2451 obj\ERRSYSW.c 105: Undefined symbol 'NULL'
Error E2141 obj\ERRSYSW.c 105: Declaration syntax error
Error E2190 obj\ERRSYSW.c 105: Unexpected }
Error E2040 obj\ERRSYSW.c 105: Declaration terminated incorrectly
Error E2190 obj\ERRSYSW.c 224: Unexpected }
Error E2109 obj\ERRSYSW.c 224: Not an allowed type in function hb_vm_SymbolInit_
ERRSYSW
*** 14 errors in Compile ***

** error 1 ** deleting .\obj\ERRSYSW.OBJ
 
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: To Antonio:

Postby Antonio Linares » Mon Nov 11, 2013 7:31 am

Gustavo,

It seems as you have not modified the Borland setup files:

viewtopic.php?f=17&t=13098
regards, saludos

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

Re: To Antonio:

Postby HunterEC » Mon Nov 11, 2013 10:37 pm

Antonio:

Thank you for the solution. Now, the only thing left is this:
Code: Select all  Expand view

upd1309.res : upd1309.rc
  $(BCDIR)\bin\brc32.exe -r upd1309.rc
 


I'm getting the following error:
Code: Select all  Expand view
Fatal: 'upd1309.rc' does not exist - don't know how to make it


I'm not using RC since this is a plain text utility program, how do I setup the make file to build the EXE ?

Thank you.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 86 guests