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"
added all my .h and .cpp files, and then attempted to link this lib to a project, with the setting shown below:
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.
NBEclipse, Creating library and linking it to a project
Re: NBEclipse, Creating library and linking it to a project
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.
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.