C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

error LNK2019

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Morten Aune Lyrstad
Guest





PostPosted: Thu Aug 26, 2004 7:18 pm    Post subject: error LNK2019 Reply with quote



I just received my copy of vc++.net. When I try to compile an "old" vc60
application I suddenly get

unresolved external symbol "void __cdecl std::_Xran(void)"
(?_Xran@std@@YAXXZ) referenced in function "public: class
std::basic_string<char,struct std::char_traits std::allocator<char> > & __thiscall std::basic_string
etc. etc. etc.

What is the difference between normal c++ and .net?

This may of course be the wrong newsgroup... If so, can anyone point me in
the right direction?


Back to top
Mike Wahler
Guest





PostPosted: Thu Aug 26, 2004 7:27 pm    Post subject: Re: [OT, welcome msg, redir, link] error LNK2019 Reply with quote



"Morten Aune Lyrstad" <wantno (AT) spam (DOT) ever> wrote

Quote:
I just received my copy of vc++.net. When I try to compile an "old" vc60
application I suddenly get

unresolved external symbol "void __cdecl std::_Xran(void)"
(?_Xran@std@@YAXXZ) referenced in function "public: class
std::basic_string<char,struct std::char_traits std::allocator<char> > & __thiscall std::basic_string
etc. etc. etc.

What is the difference between normal c++ and .net?

I don't know what 'normal' C++ is, but the C++ discussed
here is that defined by International Standard ISO/IEC 14882
(a.k.a 'standard C++', 'ISO C++', and 'ANSI C++'). '.NET' is
not a language at all, but a Microsoft technology. The latest
Microsoft C++ compiler is much more standard-compliant than
previous offers, but it still contains 'extensions' for doing
nonstandard things (e.g. interfacing with .NET platform).
The language standard does allow implementations to include
such extensions, but does not define or constrain them. They're
not part of the standard language or standard library.

Quote:

This may of course be the wrong newsgroup...

It is. For future reference, here are the 'official' description
and guidelines for comp.lang.c++:
http://www.slack.net/~shiva/welcome.txt

Quote:
If so, can anyone point me in
the right direction?

Try a newsgroup whose name begins with:
microsoft.public.vc. (if your news server does not offer these
groups, they're available from MS's server msnews.microsoft.com),

and/or look at the newsgroups listed at www.msdn.microsoft.com


-Mike



Back to top
Morten Aune Lyrstad
Guest





PostPosted: Thu Aug 26, 2004 7:27 pm    Post subject: Eh, forget it. Reply with quote



Seems like a library format difference or something. I only needed to
recompile some old libs, and it worked fine.

Just shoot me... ;-)


Back to top
Victor Bazarov
Guest





PostPosted: Thu Aug 26, 2004 7:29 pm    Post subject: Re: Eh, forget it. Reply with quote

Morten Aune Lyrstad wrote:
Quote:
Seems like a library format difference or something. I only needed to
recompile some old libs, and it worked fine.

Just shoot me... Wink

Bang! Bang!! BANG!!!

Back to top
Pete Becker
Guest





PostPosted: Thu Aug 26, 2004 7:32 pm    Post subject: Re: error LNK2019 Reply with quote

Morten Aune Lyrstad wrote:
Quote:

I just received my copy of vc++.net. When I try to compile an "old" vc60
application I suddenly get

unresolved external symbol "void __cdecl std::_Xran(void)"
(?_Xran@std@@YAXXZ) referenced in function "public: class
std::basic_string<char,struct std::char_traits std::allocator<char> > & __thiscall std::basic_string

This usually means that you've using the VC6 headers with the VC7 (i.e.
..net) library. If you've got precompiled headers lying around, get rid
of 'em and try it again. If that doesn't get you going, ask again on
microsoft.public.vc.stl.

--

Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)

Back to top
Morten Aune Lyrstad
Guest





PostPosted: Fri Aug 27, 2004 6:28 am    Post subject: Re: error LNK2019 Reply with quote

Ah, so THAT's it! Smile Thanks, I didn't know that!


Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
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, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.