Hans-Bernhard Broeker Guest
|
Posted: Tue Jun 01, 2004 6:03 pm Post subject: Re: How do I create and link library using TLIB and TLINK |
|
|
Dparker <info (AT) wrightools (DOT) com> wrote:
| Quote: | I then typed: TLINK tf6.obj tf6lib.lib
|
That line is very incomplete, and that's your problem. The fact that
one of the files presented to the linker is a library you built on your
own is essentially irrelevant. The real problem is that a large number
of other argument to the commands are missing.
I.e. your quarrel is with the linker, not with making or using
libraries.
| Quote: | Error: Undefined symbol _PUTS in library file tf6lib.lib in module TF6LIB
|
That's because your TLINK command fails to link in any C++ runtime library.
| Quote: | and last error was
Fatal: No program entry point
|
And this one happens because you didn't include any startup files, either.
You'll have to either use the generic bcc driver to call the linker
for you, or read up on how to use the linker to link a C++ program
including all the runtime support files it needs.
--
Hans-Bernhard Broeker (broeker (AT) physik (DOT) rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.
|
|