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.