Problems with lib file and linking
-
Hi all! I'm want to use my library in another project. I have compiled my lib (tmf.lib) succesfully. But when i I whant to use there a Linking error: error LNK2001: unresolved external symbol "void __cdecl tmf_close(struct TmfClass *)" (?tmf_close@@YAXPAUTmfClass@@@Z) error LNK2001: unresolved external symbol "struct TmfClass * __cdecl tmf_init(char const *)" (?tmf_init@@YAPAUTmfClass@@PBD@Z) The problem is that I've added tmf.lib to project settings library modules and copied tmf.lib and some header files to project dir. Does anyone know how to solve this problem? PS I also tryed to this similar stuff but with a very small lib containg only a few functions a every thing was ok. Pain is a weakness living the body
-
Hi all! I'm want to use my library in another project. I have compiled my lib (tmf.lib) succesfully. But when i I whant to use there a Linking error: error LNK2001: unresolved external symbol "void __cdecl tmf_close(struct TmfClass *)" (?tmf_close@@YAXPAUTmfClass@@@Z) error LNK2001: unresolved external symbol "struct TmfClass * __cdecl tmf_init(char const *)" (?tmf_init@@YAPAUTmfClass@@PBD@Z) The problem is that I've added tmf.lib to project settings library modules and copied tmf.lib and some header files to project dir. Does anyone know how to solve this problem? PS I also tryed to this similar stuff but with a very small lib containg only a few functions a every thing was ok. Pain is a weakness living the body
Add the project dir to the list of directories searched for libraries/headers in the IDE (Tools | Options -- find the VC++ settings)
Ian Mariano - http://www.ian-space.com/
"We are all wave equations in the information matrix of the universe" - me -
Add the project dir to the list of directories searched for libraries/headers in the IDE (Tools | Options -- find the VC++ settings)
Ian Mariano - http://www.ian-space.com/
"We are all wave equations in the information matrix of the universe" - me -
hmm! not working any other ideas. I think its something with precompiled headers.:~ . Pain is a weakness living the body
-
Hi all! I'm want to use my library in another project. I have compiled my lib (tmf.lib) succesfully. But when i I whant to use there a Linking error: error LNK2001: unresolved external symbol "void __cdecl tmf_close(struct TmfClass *)" (?tmf_close@@YAXPAUTmfClass@@@Z) error LNK2001: unresolved external symbol "struct TmfClass * __cdecl tmf_init(char const *)" (?tmf_init@@YAPAUTmfClass@@PBD@Z) The problem is that I've added tmf.lib to project settings library modules and copied tmf.lib and some header files to project dir. Does anyone know how to solve this problem? PS I also tryed to this similar stuff but with a very small lib containg only a few functions a every thing was ok. Pain is a weakness living the body