Thread View: comp.sys.ibm.pc.programmer
2 messages
2 total messages
Started by Dale Wyttenbach
Wed, 03 Apr 1991 16:30
linking with Borland-C 2.0
Author: Dale Wyttenbach
Date: Wed, 03 Apr 1991 16:30
Date: Wed, 03 Apr 1991 16:30
26 lines
1290 bytes
1290 bytes
I'm trying to compile a program originally written for MSC under BorlandC.
There are approximately 50 object files, which I have compiled with
bcc. I have two questions that are related.
(1)
When I try to link them, I get the error message:
undefined symbol _main in module c0.asm
There *is* a main() defined in one of the source files.
(2)
I have tried
to compile the program both with and without Borland's fancy enviroment.
I actually prefer not to use it, because I'm used to the Unix
enviroment (make, etc). When I try to link from a makefile with tlink,
it bombs because the command-line arguments are too long. Is there any
way around this?
Thanks in advance for any clues,
dale
--
Dale Wyttenbach | We all shine on,
wytten@cs.umn.edu | like the moon, the stars and the sun.
| --John Lennon
Re: linking with Borland-C 2.0
Author: Dale Wyttenbach
Date: Mon, 08 Apr 1991 14:10
Date: Mon, 08 Apr 1991 14:10
35 lines
1968 bytes
1968 bytes
I posted two questions about linking with Borland-C2.0 last week,
and I'd like to thank the many helpful people who responded. Answers
to both my questions could be found in the Borland-C User's Guide.
One of these days I'm going to have to invent a book index that is
indexed by what you're thinking about instead of being indexed by
keywords you don't know yet :-)
In <1991Apr3.163007.4958@cs.umn.edu> wytten@cs.umn.edu (myself) writes:
>I'm trying to compile a program originally written for MSC under BorlandC.
>There are approximately 50 object files, which I have compiled with
>bcc. I have two questions that are related.
>(1)
>When I try to link them, I get the error message:
>undefined symbol _main in module c0.asm
User's Guide, pg. 63: Options|Compiler|Code Generation|Generate Underbars
If you are linking with standard libraries, this box must be checked.
Comment: Argh! What a ridiculous trap to set for an unsuspecting UNIX
programmer. I used whatever the default options were, which apparently
included the standard libraries but *NOT* having this box checked.
>(2)
>When I try to link from a makefile with tlink,
>it bombs because the command-line arguments are too long.
See User's Guide, pg. 235: Using Response Files.
Thanks again!
dale
--
Dale Wyttenbach | We all shine on,
wytten@cs.umn.edu | like the moon, the stars and the sun.
| --John Lennon
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads