- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Previously, I had installed MS Visual Studio 2005 and Fortran 9.1. My application has several C++ libraries that I link in. I had built my libraries with MS Visual Studio 2005.
Now, when I try to build my app with my new setup, I am having difficulty linking with the old C++ libraries.
I believe that I am using the same external procedure settings (C, reference; upper case; string length argument after individual strings; no underscore appends). Yet I am getting error LNK2001 and LNK2019 which are unresolved external symbol"__declspec(dllimport) ...."
Would it help to re-compile my dll's with MS Visual Studio 2010. I don't see why I would need to.
Any other ideas about what I could be doing wrong?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The exact error messages I'm getting are as follows. Does this give you any clue?
cplus.lib(stringutil.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned __int64 __cdecl std::basic_string
cplus.lib(stringutil.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned __int64 __cdecl std::basic_string
cplus.lib(stringutil.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static unsigned __int64 const std::basic_string
cplus.lib(viptoken.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned __int64 const std::basic_string
cplus.lib(stringutil.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl std::basic_string
cplus.lib(vipstring.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl std::basic_string
cplus.lib(vipstring.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string
x64\Debug/simulator_debug.exe : fatal error LNK1120: 6 unresolved externals

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page