Topic: BC Help: Linking Separate Compiled Files
Author: sfp@helios.physics.utoronto.ca (Science for Peace)
Date: Sun, 26 Sep 1993 05:31:03 GMT Raw View
Can any one help me in linking independant compiled Borland C++ 2.0
files into a DOS executable. I couldn't find any info in the
documentation. Each file has been successfully compiled into an
OBJ file, but all my attempts to link then together into one
executable DOS program results in linker error. By the way, only
the main program has the main function, and all functions imported
my the main program have been declared using "extern" declaration.
I was able to successfully link independant compiled Microsoft C files
by the following routine, for the MS linker:
link mainprg subprg1 subprg2 ... subprgn
Where MAINPRG.OBJ, SUBPRG1.OBJ, SUBPRG2.OBJ, ..., SUBPRGN.OBJ
exist on the current directory, and the linker will create
MAINPRG.EXE
Unfortunately, this doesn't work for Borland C++.
Thanks in advance, Alicia da Conceicao (sfp@physics.utoronto.ca).
Author: sfp@helios.physics.utoronto.ca (Science for Peace)
Date: Sun, 26 Sep 1993 05:34:01 GMT Raw View
Can any one help me in linking independant compiled Borland C++ 2.0
files into a DOS executable. I couldn't find any info in the
documentation. Each file has been successfully compiled into an
OBJ file, but all my attempts to link then together into one
executable DOS program results in linker error. By the way, only
the main program has the main function, and all functions imported
my the main program have been declared using "extern" declaration.
I was able to successfully link independant compiled Microsoft C files
by the following routine, for the MS linker:
link mainprg subprg1 subprg2 ... subprgn
Where MAINPRG.OBJ, SUBPRG1.OBJ, SUBPRG2.OBJ, ..., SUBPRGN.OBJ
exist on the current directory, and the linker will create
MAINPRG.EXE
Unfortunately, this doesn't work for Borland C++.
Thanks in advance, Alicia da Conceicao (sfp@physics.utoronto.ca).