NBEclipse, Creating library and linking it to a project
Posted: Fri Mar 06, 2015 8:42 am
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.
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.