By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,948 Members | 1,627 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,948 IT Pros & Developers. It's quick & easy.

Beta 2005 linking with .NET 2003 libraries

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
Thanks Carl,

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

- H

Nov 17 '05 #3

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.