PDA

View Full Version : Visual studio 2003 compiler replacement



kthakore
September 10th, 2006, 03:17 AM
I am looking for a C++ compiler that can compile C++ files as VS2003 does. No I am not looking for a IDE replacement for VS2003, in fact I prefer a compiler like g++, but I am not sure if g++ will compile C++ as VS2003 does. Any help is very much appreciated.

Grey
September 10th, 2006, 04:29 AM
erm... g++ compiles my code just fine... what exactly are you having issues with? I gather that you have some code that compiled in MSVC, but not g++? Could you provide some examples, and perhaps we could help you find a solution?

Most linux IDEs, such as kDevelop or Anjuta are just frontends for g++ anyway.

kthakore
September 10th, 2006, 01:45 PM
Well I don't have any code as of now, but I am in a engineering C++ courses and they are very specific about using MSVS2003. My prof told me that most of the code will be generic C++ but, some may not, and I was wondering if linux has a compiler that will compile any C++ codes generic or otherwise.

kthakore
September 10th, 2006, 06:30 PM
Well I guess what I am looking for is a linux compiler that will make a win32 .exe file from generic C++ code.

arkangel
September 10th, 2006, 07:16 PM
if the code is portable , will compile in several plataforms (most of the console app), but if in you code you are calling microsoft-specific functions like the ones found in Microsoft Foundation classes or windows forms (hidden in some twisted dll) it wont compile.

you can use a cross compiler to generate code that will run on windows, but i never tried too hard and i duno that if you will be able to compile big projects that use soem of the functions i told you above

look here
http://wxwidgets.org/docs/technote/crosscmp.htm
or google : cross c++ compilation linux windows

kthakore
September 11th, 2006, 05:36 PM
UPDATE: Well I found a cross copiler called minGW but I don't hink it can handle stuff like OPENGL and directx

The search continue, any help is very much appreciated

nereid
September 11th, 2006, 06:41 PM
Hi,

maybe you would like to take a look at the following links

http://wiki.qgis.org/qgiswiki/BuildingWindowsBinaryOnLinux
http://rooster.stanford.edu/~ben/linux/crosshowto.php

kthakore
September 12th, 2006, 03:34 AM
thx for the links neried those really helped

kthakore
September 12th, 2006, 09:42 PM
Are some more googling and searching I found another sloutions ppl can take, altough I am much more happier with mingw and nano. But for IDEers out there this link is a good shot

http://maconstuff.blogspot.com/2006/06/how-to-run-windows-xp-under-ubuntu.html

arkangel
September 15th, 2006, 11:41 AM
OpenGl is an standard, if you write code for OpenGl it will be portabel on any plataform that support it (Unix,linux, windows,etc)

DirectX is a windows specif palataform , it will only compile under windows

kthakore
September 15th, 2006, 02:03 PM
Thanks for that reply darkangel

oh does any noe now where i can find tutorials for mono and apache

3rdalbum
September 16th, 2006, 06:27 AM
If you write your program using Winelib rather than real Windows function calls, then it will compile and run on Windows and Linux, as long as you have Winelib; but I don't know how to create an actual win32 .exe file.

X.Cyclop
September 17th, 2006, 04:08 AM
You may want to use Code::Blocks with GCC. Code::Blocks can import VC++ projects.:wink:

kthakore
September 18th, 2006, 12:52 PM
Thats awesome!!! Thx