Static library, missing obj file

Started by
3 comments, last by Asheh 15 years, 4 months ago
Hi, Ive never created a static library before so im stuck with this. I looked into it and I thought it might be to do with static variables within my static library file but no luck. In my project from which i link my library i get the following: 1>LINK : fatal error LNK1104: cannot open file 'Final.obj' Final.obj is a obj file generated when i create the static library. Why would the linker try and reference this in the linkage? Cheers. Ash.
Advertisement
Quote:Original post by Asheh
Final.obj is a obj file generated when i create the static library. Why would the linker try and reference this in the linkage?

You already know that when you compile a single translation unit (.ccp file, for instance), you generate a single object file. This object file is then linked with other object files and static import libraries to yield your application binary.

When your objective is to create a static import library, however, all your object files are simply archived as one. A static import library is just a collection of object files. The error indicates that something probably went wrong in the building of your static import library, so I'd go back and look at that.
I rebuilt everything and there isnt even a Final.obj file. The project and solution is called final year project but thats the only reference to the word final, why would it create an obj file called final?

Pretty stuck with this :-(
first, do you have a final.cpp? second, is final.cpp included in your library project?

there should definitely be a final.obj in the debug/release directory of your library project.
if you think programming is like sex, you probably haven't done much of either.-------------- - capn_midnight
Quote:
first, do you have a final.cpp? second, is final.cpp included in your library project?

there should definitely be a final.obj in the debug/release directory of your library project.


I know it sounds stupid but there isnt a final.cpp and there isnt in an obj file in the debug/release directory!

Its insane lol.

This topic is closed to new replies.

Advertisement