Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linker error

Status
Not open for further replies.

gyrvwrzp

Programmer
Feb 28, 2005
1
GB
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top