473,498 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

LNK4243 with native-code DLL?

Hello,

I am currently converting a series of ATL COM DLLs that have previously been
built with VC++ 6 to VC++ .Net (7.1? using VS.Net 2003). In any case, I am
encountering the linker error:

"""
Objects warning LNK4243: DLL containing objects compiled with /clr is not
linked with /NOENTRY; image may not run correctly
"""

I understand from the variety of KB entries, MS articles, and newsgroup
postings on this error that it occurs when compiling a mixed-mode (native +
MSIL code) DLL that contains entry points for static initialization of
objects, etc.

However, the project on which I am compiling this does not -- to my
knowledge -- use any managed code at all; in fact, I received this error
immediately after converting the project from VC++ 6 format.

I have scoured the project options and it does not seem to be compiling with
the /clr switch. The "Use Managed Extension" in the project properties is set
to "No". And being relatively new to VS.Net, I don't know where else to look.

Any suggestions for how I can ensure / convince that the compiler & linker
know that this is a native-code-only DLL would be very much appreciated.

thanks,
Lee

Nov 17 '05 #1
1 1355


"Lee F" wrote:
Hello,

I am currently converting a series of ATL COM DLLs that have previously been
built with VC++ 6 to VC++ .Net (7.1? using VS.Net 2003). In any case, I am
encountering the linker error:

"""
Objects warning LNK4243: DLL containing objects compiled with /clr is not
linked with /NOENTRY; image may not run correctly
"""

[snip]

I figured it out. The project in question had an XML Schema document (.xsd
file) as a resource; when the project was converted to VC7 format, it assumed
that I wanted to build this file with XML Data Proxy Generator, thereby
bringing managed code into play. When I politely told the comiler to leave
this file around and only include it as a resource, the problem went away.

thanks,
Lee

Nov 17 '05 #2

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

Similar topics

10
3252
by: callmebill | last post by:
I'm getting my feet wet with making Python talk to MySQL via ODBC. I started on Windows, and it went smoothly enough due to the ODBC stuff that apparently is native to Python at least on windows...
5
2385
by: Julie | last post by:
I'm currently working in a mixed mode project where the exe is C#, there is a managed C++ (DLL) assembly, that in part, includes some calls into a native (unmamanged) DLL. I can build/link/run...
1
3583
by: Boris | last post by:
When I compile my "mixed-mode" C++ dll in Release mode, I get these warnings - LINK : warning LNK4243: DLL containing objects compiled with /clr is not linked with /NOENTRY; image may not run...
1
1709
by: Mike King | last post by:
How can we get ASP.NET/CLR to release a native DLL when using P/Invoke. We are building a web application that uses a native DLL heavily. It's unlikely that we will ever have a Managed DLL...
9
2045
by: Herby | last post by:
Is possible to have a managed method within a Native(un-managed) class within a \clr project? E.g. class myClass { public: #pragma managed void myMethod(void);
2
2132
by: Dave Burns | last post by:
I have the following situation: There are two dlls in question: a c++ dll (native) and a c++/cli dll (managed) with /clr option enabled. Managed dll links with native dll. Native dll...
2
1153
by: Edward Diener | last post by:
Specifying 'public class' or 'private class' for C++ class definitions is not part of the C++ standard. In a topic in the VS 2005 docs 'How to: Declare public and private on Native classes', it is...
3
1440
by: Boris | last post by:
We have a native Windows DLL (let's call it native.dll) we developed a .NET interface for (let's say managed.dll). When a .NET application now uses the ..NET interface to talk to the Windows DLL we...
7
8091
by: Russell Mangel | last post by:
/* Hi, I am trying to hold a reference to un-managed pointer IStorage. The client/callers will make many accesses to IStorage, but only in-directly. For performance reasons IStorage needs to...
6
5296
by: | last post by:
Hi, I need to get the the display monitor native resolution.I have tried SystemInformation.PrimaryMonitorSize. it is giving the exisiting resolution of the display monitor that is connected....
0
7126
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
7005
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
7210
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...
1
6891
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
5465
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,...
0
4595
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...
0
1424
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
659
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
293
bsmnconsultancy
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...

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.