Link script error.

Link script error.

Postby HunterEC » Thu Feb 02, 2017 5:53 am

Guys:

I'm getting the following error:

Code: Select all  Expand view
Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc.
Fatal: Too many DEF file names: c:\fwh\lib\FiveHC.lib

** error 2 ** deleting REPMENU.EXE


Here's the make file:

Code: Select all  Expand view
#Borland make sample, (c) FiveTech Software 2005-2014

HBDIR=c:\harbourb
HDIRL=$(HBDIR)\lib
BCDIR=c:\bcc7
FWDIR=c:\fwh
FWH=$(FWDIR)

#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 =        \
REPMENU.PRG  \
NETWORK.PRG  \
SCATGATH.PRG \
INTERF.PRG

PROJECT    : REPMENU.EXE

REPMENU.EXE  : $(PRG:.PRG=.OBJ)
   echo on
   echo $(BCDIR)\lib\c0w32.obj + > b32.bc
   echo $(PRG:.PRG=.OBJ), + >> b32.bc
   echo errsysw.obj, + >> b32.bc
   echo repmenu.exe, + >> b32.bc
   echo repmenu.map, + >> b32.bc
   echo $(FWDIR)\lib\FiveH.lib + >> b32.bc
   echo $(FWDIR)\lib\FiveHC.lib + >> b32.bc
   echo $(HDIRL)\hbwin.lib + >> b32.bc
   echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
   echo $(HBDIR)\lib\hbrtl.lib + >> b32.bc
   echo $(HBDIR)\lib\hbvm.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 $(HDIRL)\hbcpage.lib + >> b32.bc
   echo $(HDIRL)\hbcplr.lib + >> b32.bc
   echo $(HBDIR)\lib\hbct.lib + >> b32.bc
   echo $(HDIRL)\hbpcre.lib + >> b32.bc
   echo $(HDIRL)\xhb.lib + >> b32.bc
   echo $(HBDIR)\lib\hbziparc.lib + >> b32.bc
   echo $(HDIRL)\hbmzip.lib + >> b32.bc
   echo $(HBDIR)\lib\hbzlib.lib + >> b32.bc
   echo $(HDIRL)\minizip.lib + >> b32.bc
   echo $(HDIRL)\png.lib + >> b32.bc
   echo $(HDIRL)\hbusrrdd.lib + >> b32.bc
   echo $(HDIRL)\hbtip.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 $(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 repmenu.res echo repmenu.res >> b32.bc

   $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
   del b32.bc

.PRG.OBJ:
  $(HBDIR)\bin\harbour $< /N /W /ES2 /DDEBUG /B /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include >> compiler.txt
  @type compiler.txt
  $(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

#REPMENU.RES : REPMENU.RC
#  $(BCDIR)\bin\brc32.exe -r -I$(BCDIR)\include repmenu.rc
 
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Link script error.

Postby Baxajaun » Thu Feb 02, 2017 8:55 am

Hunter,

please, review your make file, your problem is with comma in

Code: Select all  Expand view
echo $(BCDIR)\lib\c0w32.obj + > b32.bc
   echo $(PRG:.PRG=.OBJ), + >> b32.bc
   echo errsysw.obj, + >> b32.bc
   echo repmenu.exe, + >> b32.bc
   echo repmenu.map, + >> b32.bc
 


Please, try with

Code: Select all  Expand view
echo $(BCDIR)\lib\c0w32.obj + > b32.bc
   echo $(PRG:.PRG=.OBJ) + >> b32.bc
   echo errsysw.obj, + >> b32.bc
   echo repmenu.exe, + >> b32.bc
   echo repmenu.map, + >> b32.bc



Best regards
User avatar
Baxajaun
 
Posts: 968
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia

Re: Link script error.

Postby HunterEC » Thu Feb 02, 2017 11:35 am

Baxajaun:

Thank you for your response. Now I'm getting the following error:

Code: Select all  Expand view
Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc.
Fatal: Unable to open file 'NETWORK.OBJ'

** error 2 ** deleting REPMENU.EXE


Any ideas ?
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Link script error.

Postby Baxajaun » Thu Feb 02, 2017 11:46 am

Hunter,

please try with this:

Code: Select all  Expand view

#Borland make sample, (c) FiveTech Software 2005-2014

HBDIR=c:\harbourb
HDIRL=$(HBDIR)\lib
BCDIR=c:\bcc7
FWDIR=c:\fwh
FWH=$(FWDIR)

#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 =        \
REPMENU.PRG  \
NETWORK.PRG  \
SCATGATH.PRG \
INTERF.PRG

PROJECT    : REPMENU.EXE

REPMENU.EXE  : $(PRG:.PRG=.OBJ)
   echo on
   echo $(BCDIR)\lib\c0w32.obj + > b32.bc
   echo repmenu.obj +  >> b32.bc
   echo network.obj, +  >> b32.bc
   echo scatgath.obj, + >> b32.bc
   echo interf.obj, + >> b32.bc
   echo errsysw.obj, + >> b32.bc
   echo repmenu.exe, + >> b32.bc
   echo repmenu.map, + >> b32.bc
   echo $(FWDIR)\lib\FiveH.lib + >> b32.bc
   echo $(FWDIR)\lib\FiveHC.lib + >> b32.bc
   echo $(HDIRL)\hbwin.lib + >> b32.bc
   echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
   echo $(HBDIR)\lib\hbrtl.lib + >> b32.bc
   echo $(HBDIR)\lib\hbvm.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 $(HDIRL)\hbcpage.lib + >> b32.bc
   echo $(HDIRL)\hbcplr.lib + >> b32.bc
   echo $(HBDIR)\lib\hbct.lib + >> b32.bc
   echo $(HDIRL)\hbpcre.lib + >> b32.bc
   echo $(HDIRL)\xhb.lib + >> b32.bc
   echo $(HBDIR)\lib\hbziparc.lib + >> b32.bc
   echo $(HDIRL)\hbmzip.lib + >> b32.bc
   echo $(HBDIR)\lib\hbzlib.lib + >> b32.bc
   echo $(HDIRL)\minizip.lib + >> b32.bc
   echo $(HDIRL)\png.lib + >> b32.bc
   echo $(HDIRL)\hbusrrdd.lib + >> b32.bc
   echo $(HDIRL)\hbtip.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 $(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 repmenu.res echo repmenu.res >> b32.bc

   $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
   del b32.bc

.PRG.OBJ:
  $(HBDIR)\bin\harbour $< /N /W /ES2 /DDEBUG /B /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include >> compiler.txt
  @type compiler.txt
  $(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

#REPMENU.RES : REPMENU.RC
#  $(BCDIR)\bin\brc32.exe -r -I$(BCDIR)\include repmenu.rc
 


Best regards,
User avatar
Baxajaun
 
Posts: 968
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia

Re: Link script error (solved).

Postby HunterEC » Thu Feb 02, 2017 2:04 pm

Baxajaun:

Thank you very much for your help. I found the problem:

Code: Select all  Expand view
  $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s -jOBJ\ @b32.bc


The
Code: Select all  Expand view
-jOBJ\
was missing.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Link script error.

Postby Baxajaun » Thu Feb 02, 2017 2:44 pm

Hunter,

I am very glad that. Thank you for you solution.

Best regards
User avatar
Baxajaun
 
Posts: 968
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 112 guests