Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2006

Tip: Looking for answers? Try searching our database.

STL Link Errors converting from VC7 to VC8

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bruce - 28 Nov 2006 03:19 GMT
I am converting a DLL project from VC7 to VC8. The project is a managed
C++ DLL.    The project uses a non managed C++ library compiled an
linked in VC7 which uses the STL.

I just about got everything to link with the exception of some STL link
errors.

Here is an example of one of the errors:

error LNK2001: unresolved external symbol "public: void __thiscall
std::_String_base::_Xran(void)const

How do I resolve this?

Bruce
Carl Daniel [VC++ MVP] - 28 Nov 2006 06:16 GMT
> I am converting a DLL project from VC7 to VC8. The project is a
> managed C++ DLL.    The project uses a non managed C++ library
[quoted text clipped - 9 lines]
>
> How do I resolve this?

Recompile the native C++ library (or is it a DLL?) with VC8.  In general,
you can't mix C++ standard library versions in a single link, nor can you
transport Standard Library objects (like std::string) across a DLL boundary
if there are different versions on the two sides (e.g. use VC7 to compile a
DLL and VC8 ot use it - likely won't work  if there are std::string
parameters/return types to functions exported by the DLL).

-cd
Bruce - 29 Nov 2006 02:57 GMT
> Recompile the native C++ library (or is it a DLL?) with VC8.  In general,
> you can't mix C++ standard library versions in a single link, nor can you
[quoted text clipped - 4 lines]
>
> -cd

Thanks Carl.

It is not a DLL lib but a static lib.   But I guess your information
still applies?

I do also have a VC& DLL version of the lib.  It does not export
anything from STL.  Should this lib still work from VC8?

Bruce

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.