473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

unmanaged .net comiled statically?

Is it possible to compile an unmanaged C++ app statically? So the user
doesnt require the correct framework version installed?
If so how?

Jason
Nov 17 '05 #1
1 927
If you do not compile with the /clr flag then you have no dependency on any
version of the CLR being installed. That is regardless of whether you link
statically or dynamically to any unmanaged library. Of course if you link
dynamcally you need to redistribute the correct unmanaged components.

Ronald Laeremans
Visual C++ team

"Jason" <mi****@hotmail.com> wrote in message
news:uC**************@tk2msftngp13.phx.gbl...
Is it possible to compile an unmanaged C++ app statically? So the user
doesnt require the correct framework version installed?
If so how?

Jason

Nov 17 '05 #2

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

Similar topics

4
by: RobG | last post by:
I have a function whose parameter is a reference the element that called it: function someFunction(el) { ... } The function is assigned to the onclick event of some elements in the HTML...
1
by: Daniel Bass | last post by:
Is it possible to do this? I know if you take an unmanaged COM DLL and run it through the tblimp, you get a new file with an intermediate layer that translates between the IL and native code,...
0
by: Frank Lopez | last post by:
My program structure is: 1. 2. 3. => manually does the crt-init and crt-terminate calls 4. -- this is accessed by the unmanaged C++ classes in (3) using LoadLibrary and FreeLibrary
7
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...
1
by: Smugsboy | last post by:
Hi, I have a managed Application (C#) that uses a managed DLL (MC++) which uses an unmanaged DLL (C++). All reside under the same solution. The unmanaged DLL has virtual methods, it is loaded...
7
by: Greg Roberts | last post by:
Hi 1. Is there any way to access a static function in a class via the syntax ? e.g. in C# static extern void MyClass::MyFunc(); The compiler does not like the class reference ...
36
by: Martin Larsen | last post by:
Hi, When a PHP program links to a library using include or require (or their _once variations), is the library then linked dynamically or statically? While it might seem irrelevant from a...
13
by: =?Utf-8?B?d3BjbWFtZQ==?= | last post by:
I have a small C++/CLI application which calls an unmanaged lib. It seems like I can't use /clr:pure and link with the unmanaged lib (LNK1313 error). The problem I have is that compiling with...
8
by: LeXave | last post by:
Hi all In C++/CLI, is there a way to free an array allocated from an unmanaged dll ? In my managed code, I call a function from that dll which returns me an array of bytes. But how can I free it...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
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...

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.