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

Beta 2005 linking with .NET 2003 libraries

Hi,

..NET version: Visual C++ 2005 Express Edition Beta
OS: XP

I have a set of dlls built with .NET 2003. They are unmanaged C++ and C
code.

I am writing a managed C++ dll layer to call my unmanaged libraries
using IJW.

When I try to link my Beta 2005 Managed C++ library layer with my old
..NET 2003 libraries, I get the following error(s) for a number of my
files:

error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ)

I have tried compiling my old libraries in the new Beta 2005 but it
can't find Windows.h so it fails.

1) Should I be able to link my old libraries with my new managed code
layer?

2) If not, how can I get my unmanaged code libraries to compile in Beta
2005?

Thanks anyone who can help. I've gone through this whole group and most
of the mdsn Visual Studio 2005 C++ documentation and haven't found
anything yet.

- Heloise

Nov 17 '05 #1
6 1665
Heloise wrote:
Hi,

.NET version: Visual C++ 2005 Express Edition Beta
OS: XP

I have a set of dlls built with .NET 2003. They are unmanaged C++ and
C code.

I am writing a managed C++ dll layer to call my unmanaged libraries
using IJW.

When I try to link my Beta 2005 Managed C++ library layer with my old
.NET 2003 libraries, I get the following error(s) for a number of my
files:

error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
(?.cctor@@$$FYMXXZ)

I have tried compiling my old libraries in the new Beta 2005 but it
can't find Windows.h so it fails.

1) Should I be able to link my old libraries with my new managed code
layer?
No.

2) If not, how can I get my unmanaged code libraries to compile in
Beta 2005?


Install the Platform SDK.

http://msdn.microsoft.com/library/de...start_page.asp

-cd
Nov 17 '05 #2
Thanks Carl,

I will try that and let you know how it works.

- H

Nov 17 '05 #3
Hi Carl,

I installed the Platform SDK

I successfully rebuilt my native C++ libraries with the new Platform
SDK

I linked my managed layer with my new VC8 native C++ libraries.

I still get the same error.

Any other ideas?

Thanks, Heloise

Nov 17 '05 #4
Hi,

I found the fix in:
http://forums.microsoft.com/msdn/Sho...x?PostID=23846

It is to add:

mscoree.lib, msvcmrt.lib and msvcrt.lib to the linker options

for anyone who encounters the same problem!

- Heloise

Nov 17 '05 #5
Hi again Carl,

Can you tell me why my native DLLs from VS7.1 won't link with my
managed C++ VS8 layer?

Does it have to do with stl differences? name mangling? something else?

Thanks,

- Heloise

Nov 17 '05 #6
Thanks. This seemed to do the job, adding msvcmrt.lib to my project as well.
--
Bruce R.

"Heloise" wrote:
Hi,

I found the fix in:
http://forums.microsoft.com/msdn/Sho...x?PostID=23846

It is to add:

mscoree.lib, msvcmrt.lib and msvcrt.lib to the linker options

for anyone who encounters the same problem!

- Heloise

Nov 17 '05 #7

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

Similar topics

5
by: WRH | last post by:
Hello I have VS 2003 and would like to try the 2005 beta. Can someone tell me...any conflicts if installed with 2003? Is there any expiry date or other restrictions on the 2005 beta?
6
by: Rudy Ray Moore | last post by:
I work with a multi-project workspace. One project (the "startup" project) has a "Configuration Type" of "Application (.exe)". The other 40 projects have a "Configuration Type" of "Static Library...
3
by: Gustavo L. Fabro | last post by:
Greetings! I'm testing VS 2005 Beta 2, and I've compiled a program that runs just fine on my computer (where VS is installed). I've tried to run this same program on another computer (after...
1
by: mike parr | last post by:
I installed vs.net 2005 on a machine that also has vs.net 2003 on it. Since all of the 2003 projects then got converted to 2005 projects, I decided to uninstall 2005 so that I could do some work on...
16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
1
by: Sean | last post by:
Currently using VS 2003 on .Net 1.1 and I currently don’t have SQL Server (I know its cheap) Sitting on my desk is VS 2005 beta 2 and SQL 2005 beta 2. I am starting a brand new...
5
by: Lars Netzel | last post by:
I have gotten the VS.NET 2005 Beta version in the MSDN package... It seems like FrameWork 2.0 is also required for that... Is there any problems installning this on the same system as a VS.NET...
1
by: Jürgen Kahrs | last post by:
Hello, The beta alpha release (xgawk-3.1.5-beta.20060401) of the xmlgawk project is now available at SourceForge. http://sourceforge.net/projects/xmlgawk/...
0
by: Philip Lowman | last post by:
I am in the process of trying to migrate a couple of build solutions to Visual Studio Express 2005 from VS 2003 Professional and I am running into a weird C/C++ runtime library linking issue when...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.