473,396 Members | 2,106 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,396 software developers and data experts.

Migrating to VC 8 from VC 7: link errors


Hi.
I'm trying to migrate a small library to VC8 via the wizard, but when I try
to compile I get the following errors:

Error 1 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ) AssemblyInfo.obj
Error 2 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ) AssemblyInfo.obj
Error 3 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ) Stdafx.obj
Error 4 fatal error LNK1120: 1 unresolved
externals C:\AllMyStuff\MyPrograms\MyModels\ReflectometryMod el\Debug\ReflectometryModel.dll 1

The only external librariea I reference are <cmath> and <complex>. The
library compiled and worked fine before conversion, but required msvcrt.lib
and mscvcrtd.lib to be included in the project. These are also included after
conversion.

Any help would be greaty appreciated.

Thanks.
Matt Brown.

Dec 22 '05 #1
2 5514

"PDHB" <PD**@discussions.microsoft.com> wrote
I'm trying to migrate a small library to VC8 via the wizard, but when I
try
to compile I get the following errors:

Error 1 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ) AssemblyInfo.obj
Error 2 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ) AssemblyInfo.obj
Error 3 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ) Stdafx.obj
Error 4 fatal error LNK1120: 1 unresolved
externals
C:\AllMyStuff\MyPrograms\MyModels\ReflectometryMod el\Debug\ReflectometryModel.dll
1

This is likely due to hacks that were required in VC 7 & 7.1 to work around
the loader lock issue.

You may want to take a look at this thread:
news://news.microsoft.com/ef********...TNGP11.phx.gbl
http://groups.google.com/group/micro...322d903925ce88

Bottom line: Remove the /NOENTRY /Zl /DEFAULTLIB switches.

-hg
Dec 22 '05 #2

Thanks. I tried to follow what the thread said to no avail. I don't know if
I did it correctly.

In the end I just created a new project and moved all of the source and
header files over This seems to work.
Dec 22 '05 #3

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

Similar topics

4
by: Bernardo Robelo | last post by:
Hi, I am interested in migrating Microsoft Access database to Postgres database. But I do not have idea of like initiating. Maybe some tool exists for this problem. Thanks you. Bernardo
6
by: Shai Levi | last post by:
Hi, I'm trying to migrate native c++ class to managed c++ class. The native class header definition looks as: class NativeClass { public: typedef void (CbFunc1)(int n,void* p);
3
by: BobRoyAce | last post by:
I would really appreciate recommendations for sources of materials on migrating ASP applications to ASP.NET (books, URL's, etc.). Also, is there a magazine that is particularly good for .NET stuff....
2
by: Hrvoje Vrbanc | last post by:
Hello all! I have opened a production web site (project) created in VS 2003 in VS 2005 and an automatic conversion was performed. No errors were reported except the message that my application...
2
by: Stuart Quinn | last post by:
Is there anything special I should know about migrating my website from 1.1 to 2.0? I was just planning to add new pages to a project in 2.0, and then copy the 1.1 pages over one by one. Does...
6
by: phnimx | last post by:
I'm attempting to migrate a predominately MFC application that I've just inherited from Visual Studio.NET 2003 to Visual Studio 2005. I've managed to clean up a myriad of compile and link errors...
1
by: John Dalberg | last post by:
I am migrating a web site project to a web application project as indicated at this page: http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx However when I try to compile, I get a...
4
by: VikrantS | last post by:
Hi, I am migrating code from VS 6.0 to VS2008. The Code compiles in VS 6.0 but gives the following errors when compiled in VS 2008, --- \Program Files\VC\atlmfc\include\afxcmn.inl(376) : error...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.