Click to See Complete Forum and Search --> : A (hopefully) simple problem


Zdorab
August 27th, 2002, 05:11 AM
Hi all,

Recently, I've wanted to convert some small graphics programs I wrote on a UNIX machine to work with windows. This hasn't been too much of a pain because I used GLUI, which is platform independent. I got the programs to compile and run fine on my computer. The problem is when I try to run them on a different machine without VS .NET. When I try to do this, the programs will not work citing that they're missing the .NET Framework.

I created these programs as 'Managed C++ Empty Projects'. I'm using a few graphics libraries (such as glui32.lib, glut32.lib, glu32.lib, and opengl32.lib). I don't think that's the problem because I already got a few errors about missing dll's, which I fixed (by just copying the missing dll's over). I compiled the programs as release builds, copied the executables over, and that's about all. When I first wrote the programs, I used a STL list class (from SGI). In converting it over, I ended up using Microsoft's 'list' include instead. Could this be the problem?

So, am I missing something very obvious here? I am admittedly a newbie when it comes to VS .NET or other VS products (just give me good ol' emacs). It seems strange that a compiled program would still depend on the program used to create it, so I imagine I'm just missing some simple stupid detail. Does anyone have a suggestion? I would appreciate help greatly. Also, if you need more information please let me know, I'll be happy to answer any questions. Thanks a lot!

Zdorab
August 27th, 2002, 05:21 PM
Nevermind, I figured it out. In case anyone cares, I was including Microsoft's Managed Extensions in my project (using the /clr compiler flag) when I didn't need to. This caused the program to depend on the .NET Framework. To fix it I simply went to the Solution Properties -> C\C++ -> General and turned off 'Compile as Managed'. Sigh, don't know why that was on in the first place.