Hi!
I'm currently developing a DLL that makes use of C++ and .net (mixed) using
Visual Studio 2003.
Now, as I wanted to move to the new Visual Studio 2005, I converted this
project into the new format (compiling with /clr:OldSyntax): everything works
and compiles fine.
Unfortunately, I cannot link to the newly created DLL from any other
application/DLL: LNK2019: unresolved external symbol. I've checked the DLL
generated by 'dumpbin /exports' - the function I try to export is listed.
Another strange thing: When I replace the *.lib file of my DLL created by
Visual Studio 2005 with the correspondant *.lib file created by Visual Studio
2003 - everything links fine.
Any ideas why this happens?
Best wishes,
Andreas 3 1948
Hi Andreas,
Welcome to MSDN Newsgroup!
Based on my knowledge, the cause for this problem is the lib and the dll is
mismatched. The lib includes information about the dll. If the lib mismatch
with the dll, the link error will occur.
I hope the above information is helpful for you. Thanks and have a nice day!
Best Regards,
Terry Fei[MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
-------------------- Thread-Topic: Using managed extensions with C++ - link problems thread-index: AcZLT8lu50hgdG40Qo6hd2G8mfRsaw== X-WBNR-Posting-Host: 84.169.242.176 From: =?Utf-8?B?QW5kcmVhcw==?= <an******@newsgroups.nospam> Subject: Using managed extensions with C++ - link problems Date: Sun, 19 Mar 2006 04:22:28 -0800 Lines: 20 Message-ID: <E8**********************************@microsoft.co m> MIME-Version: 1.0 Content-Type: text/plain; charset="Utf-8" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft CDO for Windows 2000 Content-Class: urn:content-classes:message Importance: normal Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830 Newsgroups: microsoft.public.dotnet.general Path: TK2MSFTNGXA03.phx.gbl Xref: TK2MSFTNGXA03.phx.gbl microsoft.public.dotnet.general:191522 NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 X-Tomcat-NG: microsoft.public.dotnet.general
Hi!
I'm currently developing a DLL that makes use of C++ and .net (mixed)
usingVisual Studio 2003.
Now, as I wanted to move to the new Visual Studio 2005, I converted this project into the new format (compiling with /clr:OldSyntax): everything
worksand compiles fine. Unfortunately, I cannot link to the newly created DLL from any other application/DLL: LNK2019: unresolved external symbol. I've checked the DLL generated by 'dumpbin /exports' - the function I try to export is listed. Another strange thing: When I replace the *.lib file of my DLL created by Visual Studio 2005 with the correspondant *.lib file created by Visual
Studio2003 - everything links fine.
Any ideas why this happens?
Best wishes,
Andreas
Thanks for replying!
But, the lib file and the DLL are both created by the same compiler/linker
in the same process of compilation/linking...how can they mismatch?
How is it possible that a machting lib file, that was created with VS2003
links correctly?
Thanks,
Andreas
""TerryFei"" wrote: Hi Andreas, Welcome to MSDN Newsgroup!
Based on my knowledge, the cause for this problem is the lib and the dll is mismatched. The lib includes information about the dll. If the lib mismatch with the dll, the link error will occur.
I hope the above information is helpful for you. Thanks and have a nice day!
Best Regards,
Terry Fei[MSFT] Microsoft Community Support Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.)
--------------------Thread-Topic: Using managed extensions with C++ - link problems thread-index: AcZLT8lu50hgdG40Qo6hd2G8mfRsaw== X-WBNR-Posting-Host: 84.169.242.176 From: =?Utf-8?B?QW5kcmVhcw==?= <an******@newsgroups.nospam> Subject: Using managed extensions with C++ - link problems Date: Sun, 19 Mar 2006 04:22:28 -0800 Lines: 20 Message-ID: <E8**********************************@microsoft.co m> MIME-Version: 1.0 Content-Type: text/plain; charset="Utf-8" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft CDO for Windows 2000 Content-Class: urn:content-classes:message Importance: normal Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830 Newsgroups: microsoft.public.dotnet.general Path: TK2MSFTNGXA03.phx.gbl Xref: TK2MSFTNGXA03.phx.gbl microsoft.public.dotnet.general:191522 NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 X-Tomcat-NG: microsoft.public.dotnet.general
Hi!
I'm currently developing a DLL that makes use of C++ and .net (mixed) usingVisual Studio 2003.
Now, as I wanted to move to the new Visual Studio 2005, I converted this project into the new format (compiling with /clr:OldSyntax): everything worksand compiles fine. Unfortunately, I cannot link to the newly created DLL from any other application/DLL: LNK2019: unresolved external symbol. I've checked the DLL generated by 'dumpbin /exports' - the function I try to export is listed. Another strange thing: When I replace the *.lib file of my DLL created by Visual Studio 2005 with the correspondant *.lib file created by Visual Studio2003 - everything links fine.
Any ideas why this happens?
Best wishes,
Andreas
Hi Andreas,
Thanks for your feedback!
Based on my understanding, in most case, lib file created in VS2005
mismatch with one created in VS2003
Best Regards,
Terry Fei[MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
-------------------- Thread-Topic: Using managed extensions with C++ - link problems thread-index: AcZRJ29V9x/6gT4gTcqo3htonLD+cA== X-WBNR-Posting-Host: 84.169.255.47 From: =?Utf-8?B?QW5kcmVhcw==?= <an******@newsgroups.nospam> References: <E8**********************************@microsoft.co m>
<52**************@TK2MSFTNGXA03.phx.gbl>Subject: RE: Using managed extensions with C++ - link problems Date: Sun, 26 Mar 2006 14:48:44 -0800 Lines: 81 Message-ID: <18**********************************@microsoft.co m> MIME-Version: 1.0 Content-Type: text/plain; charset="Utf-8" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft CDO for Windows 2000 Content-Class: urn:content-classes:message Importance: normal Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830 Newsgroups: microsoft.public.dotnet.general Path: TK2MSFTNGXA01.phx.gbl Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.general:191896 NNTP-Posting-Host: TK2MSFTNGXA01.phx.gbl 10.40.2.250 X-Tomcat-NG: microsoft.public.dotnet.general
Thanks for replying!
But, the lib file and the DLL are both created by the same compiler/linker in the same process of compilation/linking...how can they mismatch?
How is it possible that a machting lib file, that was created with VS2003 links correctly?
Thanks, Andreas
""TerryFei"" wrote:
Hi Andreas, Welcome to MSDN Newsgroup!
Based on my knowledge, the cause for this problem is the lib and the dll
is mismatched. The lib includes information about the dll. If the lib
mismatch with the dll, the link error will occur.
I hope the above information is helpful for you. Thanks and have a nice
day! Best Regards,
Terry Fei[MSFT] Microsoft Community Support Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.)
-------------------- >Thread-Topic: Using managed extensions with C++ - link problems >thread-index: AcZLT8lu50hgdG40Qo6hd2G8mfRsaw== >X-WBNR-Posting-Host: 84.169.242.176 >From: =?Utf-8?B?QW5kcmVhcw==?= <an******@newsgroups.nospam> >Subject: Using managed extensions with C++ - link problems >Date: Sun, 19 Mar 2006 04:22:28 -0800 >Lines: 20 >Message-ID: <E8**********************************@microsoft.co m> >MIME-Version: 1.0 >Content-Type: text/plain; > charset="Utf-8" >Content-Transfer-Encoding: 7bit >X-Newsreader: Microsoft CDO for Windows 2000 >Content-Class: urn:content-classes:message >Importance: normal >Priority: normal >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830 >Newsgroups: microsoft.public.dotnet.general >Path: TK2MSFTNGXA03.phx.gbl >Xref: TK2MSFTNGXA03.phx.gbl microsoft.public.dotnet.general:191522 >NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250 >X-Tomcat-NG: microsoft.public.dotnet.general > >Hi! > >I'm currently developing a DLL that makes use of C++ and .net (mixed) using >Visual Studio 2003. > >Now, as I wanted to move to the new Visual Studio 2005, I converted
this >project into the new format (compiling with /clr:OldSyntax): everything works >and compiles fine. >Unfortunately, I cannot link to the newly created DLL from any other >application/DLL: LNK2019: unresolved external symbol. I've checked the
DLL >generated by 'dumpbin /exports' - the function I try to export is
listed. >Another strange thing: When I replace the *.lib file of my DLL created
by >Visual Studio 2005 with the correspondant *.lib file created by Visual Studio >2003 - everything links fine. > >Any ideas why this happens? > >Best wishes, > >Andreas >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Wayne |
last post by:
We have some old win32 apps and I still need to support these applications.
I'd like to do new and future enhancements in C#, if at all possible.
Is there a way to use a .net assembly in a normal...
|
by: Lionel Schiepers |
last post by:
I rencently tested an web application with ISAPI extensions that internally
use managed extensions but the call to the ISAPI failed. I receive the
following message: "A dynamic link library (DLL)...
|
by: Drew |
last post by:
I have recently converted all of my native C++ dll's to be compiled
with the /CLR switch. After doing this, I notcied a very strange and
frustrating issue.
One of my managed dll's calls another...
|
by: Steven Cool |
last post by:
Hi,
DA PROBLEM:
Once I wrote a c++ dll. I wanted to use that dll in my new c# project,
so I compiled it with the CLR option. The compilation was ok.
Like I said, I wanted to use the dll (with...
|
by: Ben Terry |
last post by:
I have imported a legacy C++ project into a VisualStudio.NET 2003 solution.
I have some new C# projects in the solution as well. I am using the managed
extensions in my C++ project so that I can...
| |
by: Kristof Thys via .NET 247 |
last post by:
Post a new message to microsoft.public.dotnet.languages.vc
http://www.dotnet247.com/247reference/default.aspx
Hello,
I've been struggling for weeks with this problem, I hope I find some...
|
by: Steve Marsden |
last post by:
Hi
All the information I had read suggested that if you had an existing C
project that you wished to change to managed code all you had to do was use
the /clr switch and then over time you could...
|
by: J |
last post by:
I've just been reading a few articles on how Managed Extensions are
now obsolete! Tough thing to hear, as I've been spending every spare
moment studying them to try to solve a problem.
I'd like...
|
by: kelvin.koogan |
last post by:
Our company has a mix of users with VS2003 & VS2005. I'm am having
difficulty working out how components written with these 2 tools can
be written together. I want to be able to a) incorporate a...
|
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,...
|
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,...
| |
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...
|
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...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |