View previous topic :: View next topic |
Author |
Message |
dougnoel
Joined: 21 Mar 2005 Posts: 27 Location: VA
|
Posted: Sat Jun 10, 2006 0:23 Post subject: LNK2019 Errors when linking the SCORCO Dll in VC++ Express |
|
|
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 |
|
|
dougnoel
Joined: 21 Mar 2005 Posts: 27 Location: VA
|
Posted: Sat Jun 10, 2006 6:21 Post subject: |
|
|
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 |
|
|
|