Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / September 2004

Tip: Looking for answers? Try searching our database.

What is nochkclr.obj?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Graham - 28 Sep 2004 16:19 GMT
Hi everyone,

I've seen the file "nochkclr.obj" mentioned frequently, but
I've never seen an explanation of what it is.

So ... what is it / what's in there?

Thanks

-- graham
Jochen Kalmbach - 28 Sep 2004 16:33 GMT
> I've seen the file "nochkclr.obj" mentioned frequently, but
> I've never seen an explanation of what it is.
>
> So ... what is it / what's in there?

It is necessary if you want to build managed C++ assemblies which try to
overcome the "Mixed DLL Loading Problem"

See: Mixed DLL Loading Problem
http://msdn.microsoft.com/library/en-
us/dv_vstechart/html/vcconMixedDLLLoadingProblem.asp

Or in general: If you build with /clr and /noentry

In short it does the following:

<quote>
The compiler adds a call to an internal C runtime (CRT) function called
_check_commonlanguageruntime_version to check if it's version 1.1 of the
CLR. However, since you have removed support for the CRT by using the
/noentry linker switch, the linker will complain that the CRT is not
accessible by complaining that it can't find the symbol _main. The way to
get around this problem is to link with the nochkclr.obj file provided in
the Visual C++ .NET libraries folder or to compile with
/clr:initialAppDomain described in the next section.
</quote>

See: Language Enhancements and Simplified GUI Development Enrich Your C++
Apps
http://msdn.microsoft.com/msdnmag/issues/03/03/VisualCNET/

Signature

Greetings
 Jochen

  My blog about Win32 and .NET
  http://blog.kalmbachnet.de/


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.