Beta 2005 linking with .NET 2003 libraries

H

Heloise

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
 
C

Carl Daniel [VC++ MVP]

Heloise said:
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/d...tform_software_development_kit_start_page.asp

-cd
 
H

Heloise

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
 
H

Heloise

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top