 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Jochanan Guest
|
Posted: Mon Sep 11, 2006 8:10 am Post subject: Compile a lib on commandlin, linker can't find an other lib |
|
|
Hi,
I posted this at the raize.rccomps.support. but i'm puzeld because of teh
replay from the raize news group that is attached at the end. I concluded
out of it that I did't do any thig different than that Raize think it should
be done. no tha question is: Raize problem or Builder problem. that's way I
posted it here to.
I use make -fmmi.mak -c-a -I"c:\Program files\Raize\RC3\BCBLib6"
And I'm compiling a lib.
In my make file I have thr following lines, What is there wrong about them?
do I mis somthing ??
VERSION = BCB.06.00
# ---------------------------------------------------------------------------
PROJECT = Build\MMI.lib
LIBPATH = "C:\Program
Files\Raize\RC3\LibBCB6";..;userinterface\components;Userinterface;ImageManagers;Configuration;MEDIATOR;$(BCB)\lib\obj;$(BCB)\lib
PACKAGES = vcl.bpi rtl.bpi dbrtl.bpi adortl.bpi vcldb.bpi vclx.bpi
bdertl.bpi \
ibxpress.bpi dsnap.bpi cds.bpi bdecds.bpi qrpt.bpi teeui.bpi teedb.bpi \
tee.bpi vcldbx.bpi dss.bpi teeqr.bpi visualclx.bpi visualdbclx.bpi \
dsnapcrba.bpi dsnapcon.bpi bcbsmp.bpi vclie.bpi xmlrtl.bpi inet.bpi \
inetdbbde.bpi inetdbxpress.bpi inetdb.bpi nmfast.bpi webdsnap.bpi \
bcbie.bpi websnap.bpi soaprtl.bpi dclocx.bpi dbexpress.bpi dbxcds.bpi \
bcb2kaxserver.bpi Rz30Ctls60.bpi Rz30DBCtls60.bpi Jet.bpi Indy60.bpi
INCLUDEPATH =
...;Userinterface;ImageManagers;Configuration;MEDIATOR;Userinterface\Components;..\Common;..\Data\Code;..\DatabaseInterface\Code;..\IFMWebService\IFMWebInterface\Code;..\Language\Code;..\Machine\Code;..\MachineInterface\Code;..\MachineInterface\Files\Code;..\MachineInterfaceProxy\Code;..\MachineInterface\Notifiers\Code;..\Patterns\Code;..\Utilities\Code;"C:\Program
Files\Raize\RC3\LibBCB6";$(BCB)\include;$(BCB)\include\vcl
CFLAG1
= -Od -H=$(BCB)\lib\vcl60.csm -Hc -Vx -Ve -X- -r- -a8 -b- -k -y -v -vi- -c \
-tW -tWM
..pas.hpp:
$(BCB)\BIN\$(DCC32)
$(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB
{$< }
..pas.obj:
$(BCB)\BIN\$(DCC32)
$(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB
{$< }
..cpp.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1)
$(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
..c.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1)
$(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
..c.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1)
$(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
..cpp.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1)
$(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
..asm.obj:
$(BCB)\BIN\$(TASM32) $(AFLAGS) -i$(INCLUDEPATH:;= -i)
$(AUSERDEFINES) -d$(SYSDEFINES:;= -d) $<, $@
..rc.res:
$(BCB)\BIN\$(BRCC32)
$(RFLAGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -fo$@ $<
"Raize Software Support" <support (AT) raize (DOT) com> schreef in bericht
news:DeTxKT20GHA.1172@nevrona...
| Quote: | Hi,
The *.obj files for the component units are contained in the
RaizeComponentsVcl.lib and RaizeComponentsVclDb.lib files.
These are located in the RC4\Lib\BCB6 directory. It sounds
like this directory is not in your command line options. Or,
you are not referencing the lib files in your project.
Ray
I want to compile my code from the command line.
The linker is giving the error "Fatal: unable to open file 'RZLABEL.OBJ'"
is there a work around??
In BCB 6 I can compile with no problems .
Regard
jvdn
|
|
|
| Back to top |
|
 |
Jochanan Guest
|
Posted: Mon Sep 11, 2006 8:10 am Post subject: Re: Compile a lib on commandlin, linker can't find an other |
|
|
I Rund bpr2mak once with out using the deflib.bmk
all laer times with it but the MMI.mak was not replaced.
The linker was the ilink32 that should have been TLib.
"Jochanan" <non (AT) nomail (DOT) com> schreef in bericht
news:4504f764 (AT) newsgroups (DOT) borland.com...
| Quote: | Hi,
I posted this at the raize.rccomps.support. but i'm puzeld because of teh
replay from the raize news group that is attached at the end. I concluded
out of it that I did't do any thig different than that Raize think it
should be done. no tha question is: Raize problem or Builder problem.
that's way I posted it here to.
I use make -fmmi.mak -c-a -I"c:\Program files\Raize\RC3\BCBLib6"
And I'm compiling a lib.
In my make file I have thr following lines, What is there wrong about
them? do I mis somthing ??
VERSION = BCB.06.00
# ---------------------------------------------------------------------------
PROJECT = Build\MMI.lib
LIBPATH = "C:\Program
Files\Raize\RC3\LibBCB6";..;userinterface\components;Userinterface;ImageManagers;Configuration;MEDIATOR;$(BCB)\lib\obj;$(BCB)\lib
PACKAGES = vcl.bpi rtl.bpi dbrtl.bpi adortl.bpi vcldb.bpi vclx.bpi
bdertl.bpi \
ibxpress.bpi dsnap.bpi cds.bpi bdecds.bpi qrpt.bpi teeui.bpi teedb.bpi
\
tee.bpi vcldbx.bpi dss.bpi teeqr.bpi visualclx.bpi visualdbclx.bpi \
dsnapcrba.bpi dsnapcon.bpi bcbsmp.bpi vclie.bpi xmlrtl.bpi inet.bpi \
inetdbbde.bpi inetdbxpress.bpi inetdb.bpi nmfast.bpi webdsnap.bpi \
bcbie.bpi websnap.bpi soaprtl.bpi dclocx.bpi dbexpress.bpi dbxcds.bpi \
bcb2kaxserver.bpi Rz30Ctls60.bpi Rz30DBCtls60.bpi Jet.bpi Indy60.bpi
INCLUDEPATH =
..;Userinterface;ImageManagers;Configuration;MEDIATOR;Userinterface\Components;..\Common;..\Data\Code;..\DatabaseInterface\Code;..\IFMWebService\IFMWebInterface\Code;..\Language\Code;..\Machine\Code;..\MachineInterface\Code;..\MachineInterface\Files\Code;..\MachineInterfaceProxy\Code;..\MachineInterface\Notifiers\Code;..\Patterns\Code;..\Utilities\Code;"C:\Program
Files\Raize\RC3\LibBCB6";$(BCB)\include;$(BCB)\include\vcl
CFLAG1
= -Od -H=$(BCB)\lib\vcl60.csm -Hc -Vx -Ve -X- -r- -a8 -b- -k -y -v -vi- -c
\
-tW -tWM
.pas.hpp:
$(BCB)\BIN\$(DCC32)
$(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH)
--BCB {$< }
.pas.obj:
$(BCB)\BIN\$(DCC32)
$(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH)
--BCB {$< }
.cpp.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1)
$(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
.c.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1)
$(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
.c.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1)
$(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
.cpp.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1)
$(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
.asm.obj:
$(BCB)\BIN\$(TASM32) $(AFLAGS) -i$(INCLUDEPATH:;= -i)
$(AUSERDEFINES) -d$(SYSDEFINES:;= -d) $<, $@
.rc.res:
$(BCB)\BIN\$(BRCC32)
$(RFLAGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -fo$@ $
"Raize Software Support" <support (AT) raize (DOT) com> schreef in bericht
news:DeTxKT20GHA.1172@nevrona...
Hi,
The *.obj files for the component units are contained in the
RaizeComponentsVcl.lib and RaizeComponentsVclDb.lib files.
These are located in the RC4\Lib\BCB6 directory. It sounds
like this directory is not in your command line options. Or,
you are not referencing the lib files in your project.
Ray
I want to compile my code from the command line.
The linker is giving the error "Fatal: unable to open file
'RZLABEL.OBJ'"
is there a work around??
In BCB 6 I can compile with no problems .
Regard
jvdn
|
|
|
| Back to top |
|
 |
Ed Mulroy Guest
|
Posted: Mon Sep 11, 2006 8:25 pm Post subject: Re: Compile a lib on commandlin, linker can't find an other |
|
|
| Quote: | I posted this at the raize.rccomps.support. but i'm puzeld because of teh
replay from the raize news group that is attached at the end. I concluded
...
|
Note that I do not know what "raise" is and cannot address any specific
problems with their software.
| Quote: | I use make -fmmi.mak -c-a -I"c:\Program files\Raize\RC3\BCBLib6"
|
That looks as if you are passing compiler options as command line options to
make.exe Compiler options must be given to the compiler.
The make file that you posted is either flawed or incomplete.
A make file contains one or more rules, each of which gives the name of a
target, an item which is to be built, those items upon which the target
depends (items to be used in creating the targe) and the command line(s)
used to create the target. The first rule encountered is the main target.
Creating that one target is why the make file exists.
Your message shows this macro at the top of the make file:
PROJECT = Build\MMI.lib
This means that wherever $(PROJECT) is found in the rest of the file, the
string Build\MMI.lib will be substituted into it.
The PROJECT macro is normally used to define the main target. That macro is
not found elsewhere in the make file you display. I found no target in that
make file. I don't think it will build anything.
I have posted several pages on make files at this address:
http://www.mulroy.org/howto5.htm
If you look though those pages it should refresh your memory on how to
construct a make file and help you to determine how to modify what you
posted to do what you want.
.. Ed
| Quote: | Jochanan wrote in message
news:4504f764 (AT) newsgroups (DOT) borland.com...
Hi,
I posted this at the raize.rccomps.support. but i'm puzeld because of teh
replay from the raize news group that is attached at the end. I concluded
out of it that I did't do any thig different than that Raize think it
should be done. no tha question is: Raize problem or Builder problem.
that's way I posted it here to.
I use make -fmmi.mak -c-a -I"c:\Program files\Raize\RC3\BCBLib6"
And I'm compiling a lib.
In my make file I have thr following lines, What is there wrong about
them? do I mis somthing ??
VERSION = BCB.06.00
# ---------------------------------------------------------------------------
PROJECT = Build\MMI.lib
LIBPATH = "C:\Program
Files\Raize\RC3\LibBCB6";..;userinterface\components;Userinterface;ImageManagers;Configuration;MEDIATOR;$(BCB)\lib\obj;$(BCB)\lib
PACKAGES = vcl.bpi rtl.bpi dbrtl.bpi adortl.bpi vcldb.bpi vclx.bpi
bdertl.bpi \
ibxpress.bpi dsnap.bpi cds.bpi bdecds.bpi qrpt.bpi teeui.bpi teedb.bpi
\
tee.bpi vcldbx.bpi dss.bpi teeqr.bpi visualclx.bpi visualdbclx.bpi \
dsnapcrba.bpi dsnapcon.bpi bcbsmp.bpi vclie.bpi xmlrtl.bpi inet.bpi \
inetdbbde.bpi inetdbxpress.bpi inetdb.bpi nmfast.bpi webdsnap.bpi \
bcbie.bpi websnap.bpi soaprtl.bpi dclocx.bpi dbexpress.bpi dbxcds.bpi \
bcb2kaxserver.bpi Rz30Ctls60.bpi Rz30DBCtls60.bpi Jet.bpi Indy60.bpi
INCLUDEPATH =
..;Userinterface;ImageManagers;Configuration;MEDIATOR;Userinterface\Components;..\Common;..\Data\Code;..\DatabaseInterface\Code;..\IFMWebService\IFMWebInterface\Code;..\Language\Code;..\Machine\Code;..\MachineInterface\Code;..\MachineInterface\Files\Code;..\MachineInterfaceProxy\Code;..\MachineInterface\Notifiers\Code;..\Patterns\Code;..\Utilities\Code;"C:\Program
Files\Raize\RC3\LibBCB6";$(BCB)\include;$(BCB)\include\vcl
CFLAG1
= -Od -H=$(BCB)\lib\vcl60.csm -Hc -Vx -Ve -X- -r- -a8 -b- -k -y -v -vi- -c
\
-tW -tWM
.pas.hpp:
$(BCB)\BIN\$(DCC32)
$(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH)
--BCB {$< }
.pas.obj:
$(BCB)\BIN\$(DCC32)
$(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH)
--BCB {$< }
.cpp.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1)
$(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
.c.obj:
$(BCB)\BIN\$(BCC32) $(CFLAG1)
$(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
.c.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1)
$(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
.cpp.i:
$(BCB)\BIN\$(CPP32) $(CFLAG1)
$(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
.asm.obj:
$(BCB)\BIN\$(TASM32) $(AFLAGS) -i$(INCLUDEPATH:;= -i)
$(AUSERDEFINES) -d$(SYSDEFINES:;= -d) $<, $@
.rc.res:
$(BCB)\BIN\$(BRCC32)
$(RFLAGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -fo$@ $
"Raize Software Support" <support (AT) raize (DOT) com> schreef in bericht
news:DeTxKT20GHA.1172@nevrona...
Hi,
The *.obj files for the component units are contained in the
RaizeComponentsVcl.lib and RaizeComponentsVclDb.lib files.
These are located in the RC4\Lib\BCB6 directory. It sounds
like this directory is not in your command line options. Or,
you are not referencing the lib files in your project.
Ray
I want to compile my code from the command line.
The linker is giving the error "Fatal: unable to open file
'RZLABEL.OBJ'"
is there a work around??
In BCB 6 I can compile with no problems .
Regard
jvdn |
|
|
| Back to top |
|
 |
Dennis Jones Guest
|
Posted: Wed Sep 20, 2006 8:10 am Post subject: Re: Compile a lib on commandlin, linker can't find an other |
|
|
"Jochanan" <non (AT) nomail (DOT) com> wrote in message
news:4504f764 (AT) newsgroups (DOT) borland.com...
| Quote: |
I want to compile my code from the command line.
The linker is giving the error "Fatal: unable to open file
'RZLABEL.OBJ'"
is there a work around??
In BCB 6 I can compile with no problems .
|
It is important to note that the IDE *implicitly* references paths to
folders used by components that are installed in the IDE, even if those
paths are not specified in your project's include or library paths.
However, when you generate a makefile from a BPR or BPK with bpr2mak, the
paths that are implicitly referenced by the IDE are *not* going to be in the
makefile because they are not in the project. Therefore, if you do not
explicitly reference them in your project options, your project may not
compile or link from the command line. 99% of the time, this is the reason
a project that builds perfectly in the IDE will not build from the command
line. The other 1% of the time it is due to bugs in bpr2mak (for which
there are known workarounds).
- Dennis |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|