This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

newbie linking question


I'm using cygwin and would like to seperately compile, then link my code. What should I be using for the linker command line? When I try to link I keep getting "undefined reference to __main" as well as other things the linker can't find.

I know this is probably a very basic question, but I can't seem to find good info in the documentation and/or FAQ to indicate which libraries I need to link a c++ application with. I've switched over to just using a single step gcc command in my Makefile for now, but I'd like to seperate it out.




--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]