You are trying to make an EXE file out of a lib. I guess that your type of project is wrong. Make sure if you start a new project you select "Static Library" as project type.
With regards, Morten.
Youre right. the lib with a header that i was creating was in a wrong project. Now i can create the lib without error
But i still cant use it. I get undefined reference then i try to use it.
I know the project is finding the header, because it compile. and i know it is finding the library, because it dont get "cant find -llibssptools.a". But I get undefined reference errors, even when im defining the references in the lib.
the problem appears to be inside the library.
But actually im trying to use Newton library and im getting the same error. So it can be some C::B configuration. But i am already using Ogre and CeGUI libs without error in C::B. So... im clueless.
for people wanting to se the code here are parts of it:
http://pastebin.com/575053