delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1996/12/11/20:31:39

From: scottc AT net-community DOT com (Scott Christley)
Subject: Re: Redefining main()
11 Dec 1996 20:31:39 -0800 :
Sender: daemon AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199612111828.KAA12332.cygnus.gnu-win32@stetson.net-community.com>
Mime-Version: 1.0
X-Sender: scottc AT net-community DOT com
X-Mailer: Windows Eudora Light Version 1.5.2
Original-To: Cygnus GNU-WIN32 Discussion <gnu-win32 AT cygnus DOT com>
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Ok, well some additional work shows that the reason ld isn't finding the
main() in libgnustep-base.a is because my test program doesn't reference
anything within the gnustep-base object file where main is defined.  So ld
is not including that object file into the executable.  I discovered this
because when I compiled a program which did force inclusion of that object
file then the linking went fine and it found gnustep-base's main.

So maybe the real question is, what ld option to I pass to force it include
an object file?  Is there some way to tell ld that it should automatically
include all object files in a library?

Scott

-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019