using a .lib file
-
How do use lib file. Do i just have to declare the lib name in the link tab. How do i get the function names that are exposed by the library??
Instead of putting it in the link tab, you can also use:
#pragma comment(lib, "libfile")
I suppose, if you have the DLL of the LIB file, you can view the dependencies from the "Depends" Visual Studio tool. It will list the functions exported. Hope this helps. * Don't wish it was easier, wish you were better! * -
Instead of putting it in the link tab, you can also use:
#pragma comment(lib, "libfile")
I suppose, if you have the DLL of the LIB file, you can view the dependencies from the "Depends" Visual Studio tool. It will list the functions exported. Hope this helps. * Don't wish it was easier, wish you were better! *Actually the project did not make any dll file....i have the complete code for the lib project. The project compiles ok no errors there. Only when i add the lib file to the project and try to call the global function for that lib then i get loads of unresolved symbols errors. Any ideas how to deal with this or what i am doing wrong here. Thanks
-
Actually the project did not make any dll file....i have the complete code for the lib project. The project compiles ok no errors there. Only when i add the lib file to the project and try to call the global function for that lib then i get loads of unresolved symbols errors. Any ideas how to deal with this or what i am doing wrong here. Thanks
FASTian wrote: ...i get loads of unresolved symbols errors. Any ideas how to deal with this or what i am doing wrong here. The exported function is not being called correctly. Make sure C++'s name mangling is not biting you.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
FASTian wrote: ...i get loads of unresolved symbols errors. Any ideas how to deal with this or what i am doing wrong here. The exported function is not being called correctly. Make sure C++'s name mangling is not biting you.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
I'm curiuos about this too. Could you expound upon "name mangling" and how to avoid it?
-
I'm curiuos about this too. Could you expound upon "name mangling" and how to avoid it?
Try this search.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen