NBEclipse, Creating library and linking it to a project

Topics for the Eclipse Environment
Post Reply
adamstg
Posts: 6
Joined: Fri Mar 06, 2015 8:16 am

NBEclipse, Creating library and linking it to a project

Post by adamstg »

I'm having some trouble trying to figure out exactly how to create and link a library a project

so far i have created the library project as a "Netburner Device Library"

Image

added all my .h and .cpp files, and then attempted to link this lib to a project, with the setting shown below:

Image

the lib seems to compile just fine, until i link it to a project and then the compiler throws out the error " undefined reference to 'UserMain' ". It doesn't seem right to have a UserMain in the lib project its just a library...

what am i doing wrong?
is there a better \ easier way to create and link a library to a project?

any hints would be helpful,
thanks.
adamstg
Posts: 6
Joined: Fri Mar 06, 2015 8:16 am

Re: NBEclipse, Creating library and linking it to a project

Post by adamstg »

after some playing around i got something working

instead of having the lib as a project in the workspace, i simply put all the .h and .cpp files in a directory and linked my project to all these file in that directory.
Post Reply