473,566 Members | 3,307 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 1364


"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
3265
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 (I've been following ch. 13 of Mark Hammond's py on win32 book). But now I'm trying to do equivalent stuff on linux (Fedora Core 3) with python...
5
2390
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 just fine, the question isn't about that. What I'm after is, if I have another client that uses the C++ managed assembly, I want the unmanaged DLL...
1
3591
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 correctly LINK : warning LNK4089: all references to 'MSVCP71.dll' discarded by /OPT:REF LINK : warning LNK4089: all references to 'OLEAUT32.dll'...
1
1714
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 because of the 3rd party static library (.LIB) file that we're using. The problem is that when one of the pages that uses the native DLL is requested,...
9
2058
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
2150
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 exports a class ClientSession with a method GetJob. Managed dll references this method and compiles just fine.
2
1156
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 suggested that this syntax is supported with VC8 for interaction with CLR ref classes and for specifying in a CLR assembly. However in the...
3
1447
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 always thought that managed.dll must be copied to the application directory (where the .NET application runs) and that native.dll can be anywhere...
7
8101
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 be opened once, and a reference held by MyClass for duration of session. 1. Should I use a native class to do the native stuff?
6
5303
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. Please help me out to find the way to get the native resolution of the monitor that is connected -BMK
0
7673
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7893
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8109
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7645
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6263
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5485
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2085
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 we have to send another system

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.