Free Microsoft C++

We have been using [still are] VC++ v6, but Microsoft have just released a cut down [less libraries] .NET C++ compiler. I am using it for simple jobs. As a general rule I have not had success running multiple MS compilers on same machine - so I don't. I mean I did not install .NET to same machine as v6. You can download from Microsoft site here >> http://msdn.microsoft.com/visualc/vctoolkit2003/

cale zeune's picture

did you get opencascade to work with the free vc toolkit compiler? i'm trying to but am having trouble. i've got it to find the include file headers, but it still complains. i'm kind of new to c++ so it might be something stupid, but i have been wondering if anyone had any luck getting OCC to work with the VCtoolkit.

thanks,
cale

cale zeune's picture

did you get opencascade to work with the free vc toolkit compiler? i'm trying to but am having trouble. i've got it to find the include file headers, but it still complains. i'm kind of new to c++ so it might be something stupid, but i have been wondering if anyone had any luck getting OCC to work with the VCtoolkit.

thanks,
cale

cale zeune's picture

did you get opencascade to work with the free vc toolkit compiler? i'm trying to but am having trouble. i've got it to find the include file headers, but it still complains. i'm kind of new to c++ so it might be something stupid, but i have been wondering if anyone had any luck getting OCC to work with the VCtoolkit.

thanks,
cale

cale zeune's picture

sorry... slow connection and impatience.
cale

Roman Lygin's picture

Hi Cale,

OCC supports both VC6.0SP5 and VC7.1 (.Net 2003). I'm not familiar with Free edition but would wonder if it does not well compile the code being well built by commercial edition. As far as I know, free edition does not include IDE (and perhaps, debugger).

Roman

cale zeune's picture

Roman,
Thanks for the quick reply. Yeah, the free toolkit comes with the compiler and most of the non GUI/IDE tools that shipped with VisualStudio .NET 2003 Pro. Maybe I just don't have all of the OCC code properly linked into it and the environment/path isnt' properly set. I'm not too familiar with using the debugger either.

It currently has a few different (~10) types of errors when I've tried to compile the MakeBottle.cxx file included in the samples/tutorial/src directory. It mostly complains about the ostream identifier in Standard.hxx, Standard_Storable.hxx, Handle_Standard_Transient.hxx, and several others. I get the occasional "missing ';' before '{'" error.

Any ideas?

thanks alot,
cale

cale zeune's picture

Well, i've solved the compile errors by defining WNT (command line option /DWNT), and now have linking problems. Not sure how to properly associate the lib files needed to link the makebottle.cxx tutorial file. any ideas?

thanks,
cale

cale zeune's picture

for reference, i've figure out how to compile and link the MakeBottle.cxx file included on the free microsoft toolkit 2003. the commands are as follows:
-------
cl /DWNT /EHsc /c MakeBottle.cxx
link *.obj "C:\Program Files\OpenCASCADE\OCC5.2\ros\win32\lib\*.lib"
-------

mamadou sy's picture

Hi Cale,

I was actually asking how to run this MakeBottle.cxx program in Open Cascade?
Could you please explain to me ( I am a new user) where to put your two lines code
(Test Harness..., Start run -windows- or ...).

Thank you for your patience and explanations.