a static library (archive) is very different from an application (application entry point, startup, etc). Changing this 'in place' is possible, but you have to know 100% what you are doing.
What I recommend is
a) create a new project with the IDE (here you have the option to select to build a static library)
b) then copy/move over your files you want to have in the library.
I hope this helps,
Erich