Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Disabling the linker
Disabling the linker [message #1703469] Fri, 31 July 2015 19:42 Go to next message
Dallas Posey is currently offline Dallas PoseyFriend
Messages: 1
Registered: July 2015
Junior Member
I hate to ask this as I know it's a simple question but I need to compile a project and skip the linker. It's a c++ class library and I keep getting "undefined reference to main". I know why it happens just not sure how to tell eclipse "this is a library so there is no main". The compiler has the -c flag but do I just set the linker command to blank or something ??? I used to know how to do this but I'm blanking and Google didn't help Embarrassed
Re: Disabling the linker [message #1703637 is a reply to message #1703469] Mon, 03 August 2015 18:34 Go to previous message
Klaus km is currently offline Klaus kmFriend
Messages: 142
Registered: November 2011
Senior Member
Hello,

Quote:
Google didn't help


but the cdt-manual would help- see link in footer.

Quote:
how to tell eclipse "this is a library


Select a library-project type:

http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Freference%2Fcdt_u_new_proj_wiz_type.htm

regards


Previous Topic:Can't run project, "No recent history launches"
Next Topic: Converting a C project to C++
Goto Forum:
  


Current Time: Sun Sep 15 14:23:20 GMT 2024

Powered by FUDForum. Page generated in 0.02791 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top