 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Dparker Guest
|
Posted: Tue Jun 01, 2004 5:54 pm Post subject: How do I create and link library using TLIB and TLINK |
|
|
I am converting a 16 bit DOS application from MSVC to Borland 5.02. The
target for the application is a PC-104 card and it is the brains of a
control system.
When I compiled with the Borland compiler, the compiler ran out of memory. I
am using the command line. My program is very large for a 16 bit program, so
I decided to take all of the functions that I created except for main() and
compile them into their own library.
Command line for this was: BCC -w- -c tf6lib.cpp
then: : TLIB tf6lib.lib +tf6lib.obj
No errors were generated, and tf6lib.lib was created.
Then I created the main file: BCC -w- -c tf6.cpp
Again no problems.
I then typed: TLINK tf6.obj tf6lib.lib
I got a bunch of errors, and it scrolled so fast I don't know what the first
ones were, but the ones on screen were like this:
Error: Undefined symbol _PUTS in library file tf6lib.lib in module TF6LIB
and last error was
Fatal: No program entry point
I have never created a library before, and the problem that I have is that I
haven't found any step by step reference material on how to do this. Again,
my app is a 16 bit DOS application. Any help would be welcome.
|
|
| Back to top |
|
 |
Ed Mulroy [TeamB] Guest
|
Posted: Tue Jun 01, 2004 8:13 pm Post subject: Re: How do I create and link library using TLIB and TLINK |
|
|
Wrong newsgroup. Your question is about the old Borland C++ compiler
in 16 bit mode but it is posted here in the newsgroup for the C++
Builder compiler's command line tools, a compiler that cannot create
16 bit code.
Try changing to Large model and then asking over in
borland.public.cpp.borlandcpp
.. Ed
| Quote: | Dparker wrote in message
news:40bcc2c3$1 (AT) newsgroups (DOT) borland.com...
|
|
|
| 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
|
|