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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help linking a working project

Status
Not open for further replies.

Wizumwalt

Programmer
Jul 12, 2005
10
Hi,

I'm not very good w/ VC++ as I come from the other side, but I have a VC++ program that did compile, and I did a build->clean solution on a project and I can no longer get it to link. All the cpp files build fine, but it doesn't link w/ a another dll that's in the Release directory of my visual studio project. I get lots of 'unresolved external symbol errors.

Can anyone help me w/ what I need to do to get it to link and create my exec?

Thnx,
 
Just doing a clean solution should not do that. Check to make sure that another property didn't get changed. Also, make sure that the external dll is being referenced in the right location. If the linker is expecting it somewhere else, and it's not there, then you'll get errors like that.

Also, you should try not to be so vague in your question. Provide details of the type of dll you're referencing (third party app, windows dll, etc.) and also the exact error you're getting.

im in ur stakz, overflowin ur heapz!
 
Yeah, it's a third party dll that came w/ headers and this sits in a directory in my project. I have no idea what property might have been changed. I tried to add the 3rd party dll folder to Project->MyProj Properties->Reference->add ... but that didn't help.

The exact error I'm getting is :
error LNK2001: unresolved external symbol __imp_free
...

I'm sure the linker is thinking it's elsewhere and not finding it, but I can't find out how to changed this.
 
Did you get a lib file with it? If so, check your settings and see if the directory for the lib file is correct.

im in ur stakz, overflowin ur heapz!
 
Sounds like the "clean" deleted the library. You might want to make it read-only when you find another copy of it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top