473,320 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

error LNK2019

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<char>,class
std::allocator<char> > & __thiscall std::basic_string<char,

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?
Jul 22 '05 #1
5 3688
"Morten Aune Lyrstad" <wa****@spam.ever> wrote in message
news:fI******************@news2.e.nsc.no...
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<char>,class
std::allocator<char> > & __thiscall std::basic_string<char,

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.

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
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
Jul 22 '05 #2
Seems like a library format difference or something. I only needed to
recompile some old libs, and it worked fine.

Just shoot me... ;-)
Jul 22 '05 #3
Morten Aune Lyrstad wrote:
Seems like a library format difference or something. I only needed to
recompile some old libs, and it worked fine.

Just shoot me... ;-)


Bang! Bang!! BANG!!!
Jul 22 '05 #4
Morten Aune Lyrstad wrote:

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<char>,class
std::allocator<char> > & __thiscall std::basic_string<char,


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)
Jul 22 '05 #5
Ah, so THAT's it! :-) Thanks, I didn't know that!
Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Vishal Saxena | last post by:
Hi, I am new to this news group, hope to get prompt solution from you, gurus of VC. Well i had a project developed in VC++ 6.0, it uses Adobe Plugin Development SDK, I am trying to upgrade my...
2
by: hazizpour | last post by:
Hello I hope I am in the correct newsgroup, if not please let me know. I am trying to build a sample for using a certain library ( IFC mapping to C++ classes, see www.cstb.fr) with MS Visual...
0
by: Usman | last post by:
Hi I've a COM compiled in visual studio 6 that is internally using zlib library (an opensource library for compression). I've no problem compiling that code. But when I moved to visual...
1
by: developer | last post by:
Hi All I have made a .NET project. the files included are borland c++ files that i am migrate to VC++ .NET I am using Microsoft Visual C++ .NET 2003. the compilation goes through properly,...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
1
by: girays | last post by:
I have a template class which name is EntityRepository and when I compile this class I get no error. But when I use this class in a main method I get LNK2019 linking error. std::map object is used...
4
by: jk2l | last post by:
Error 10 error LNK2019: unresolved external symbol __imp__glBindTexture@8 referenced in function "public: void __thiscall GLTexture::Use(void)" (?Use@GLTexture@@QAEXXZ) GLTexture.obj Error 11 error...
1
by: Jonas Schneider | last post by:
Heya, don´t know if you know BOINC: it´s a system for distributed computing, therefore distributing work to many computers and creating a little super-computer, see also their homepage:...
1
by: eraserwars | last post by:
I have been googeling every possible solution, but I cannot seem to fix LNK2019. My code is below, but I just cannot understand how anything related to LNK2019 from Microsoft's help center applies...
2
by: hjazz | last post by:
Hi all, I'm new to VS, and I'm using Visual Studio .NET 2003. I'm trying to write a program which uses pcap libraries. However, I keep getting the following errors: error LNK2019: unresolved...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.