logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
LNK2019 Errors when linking the SCORCO Dll in VC++ Express

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development
View previous topic :: View next topic  
Author Message
dougnoel



Joined: 21 Mar 2005
Posts: 27
Location: VA

PostPosted: Sat Jun 10, 2006 0:23    Post subject: LNK2019 Errors when linking the SCORCO Dll in VC++ Express Reply with quote

Code:
NWNXSCORCO.obj : error LNK2019: unresolved external symbol __imp__StringFromGUID2@12 referenced in function "protected: void __thiscall CNWNXSCORCO::GenUUID(char *)" (?GenUUID@CNWNXSCORCO@@IAEXPAD@Z)
NWNXSCORCO.obj : error LNK2019: unresolved external symbol __imp__CoCreateGuid@4 referenced in function "protected: void __thiscall CNWNXSCORCO::GenUUID(char *)" (?GenUUID@CNWNXSCORCO@@IAEXPAD@Z)

I'm getting these two errors when I try to link the code. Commenting the two lines in question allows it to complete no problem. StringFromGUID2 and CoCreateGUID use ole32.lib, which is in my linker path.

It seems that moving to Visual C++ 2005 Express is the issue, but I'm not sure how to solve the problem. Any ideas are appreciated.

Doug
Back to top
View user's profile Send private message Send e-mail
dougnoel



Joined: 21 Mar 2005
Posts: 27
Location: VA

PostPosted: Sat Jun 10, 2006 6:21    Post subject: Reply with quote

It turns out, the ATL was the culprit!

Project -> [Proj Name] Properties -> Configuration properties -> General -> Use of ATL -> Dynamic Link to ATL

This solved my problem. Whew!
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group