im getting linker error 2005 for source files that contain functions that are apart of a header file that i included in the main source file, and other source files that needed it. how can i overcome this.
Including the .h files will get the code to compile. It isn't enough to get it to link. For that, you have to include the correct .lib files. The MSDN documentation for the functions you're trying to include should tell you which libs those are. You put them on the Settings->Link tab.
If you are defining the functions inside your header files, that can cause linker errors. If you still can't fix it, paste the exact error you are getting.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.