Windows C++ compiler for Linux


 
Thread Tools Search this Thread
Operating Systems Linux Windows C++ compiler for Linux
# 1  
Old 10-15-2004
Windows C++ compiler for Linux

Does anyone here know of any good windows c++ compiler for linux? so that I can compile c++ programs in Linux (this is very possible!). Doesnt mather if it is a real windows compiler that works in wine or if its a compiler written for linux but compiles windows binaries
# 2  
Old 10-15-2004
Error portable.!!

Smilie from what I understand a gcc unix\/linux compiler and a windows compiler are not really going to affect the outcome of your programm that much its the portability with which you are writing the programm so a linux compiler is better for linux and all programms if programmed correctly should work on any compiler.. the key words are "programm portability"... but that is just something that i have read over and over in several c language books that deal with windows and linux and other systems... i haven't actually tried this myself yet.. since i have not seen the need to.. but from what I have read and heard if the code is good it will work on any compiler guarnteed..!
moxxx68Smilie Smilie
# 3  
Old 10-15-2004
http://www.bloodshed.net/compilers/

This site might be a good place to learn about compilers, and find a compiler if the GNU GCC compilers included in GNU/Linux does not suit your needs.

If you do not have a GNU/Linux system, you could always use Cygwin on Windows for compiling the software.

http://www.cygwin.com/
# 4  
Old 10-16-2004
oops, I am so sorry!
ofcourse what I meant was that I want to compile windows programs in linux, to give to those hwo have not yet ported to linux
# 5  
Old 10-17-2004
This might be more work than you want, not all apps will be easy to just compile and make work on Windows. You will have to include the necessary libraries, and this might be difficult as well, if your planning to build programs which make use of certain toolkits, such as QT, GTK...etc.
For the more simple commandline apps, this should not be as large a task.
Some software compiled on GNU/Linux systems which are able to be run on Windows sometimes include the cygwin.dll.

You will probably need to investigate this more, which will be as indepth as the programs your planning to build. You should look into the gnu gcc and related man pages and website for starters.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Seen Windows pc, having all the features of Linux, could exe, read and edit save like windows

Hi, totally new to linux base using windows when started learning and using computers. but i remember that one pc was there , look alike windows desktop, but could not do the task as windows just click and open and view edit etc. But, you could do a little differently even saving in and opening... (8 Replies)
Discussion started by: jraju
8 Replies

2. UNIX and Linux Applications

Xalan & Xerces issues for Oracle Linux 6.6 & Solarisstudio12.3 C++ compiler for Linux

Hi Team, I am facing issue while using Xalan & Xerces for my application. Below are my environment details i am using :- Platform:- Oracle Linux 6.6 Compiler :- solarisstudio12.3 C++ compiler for Linux Below are the versions of Xalan & Xerces source code used to build the shared object... (0 Replies)
Discussion started by: agrachirag
0 Replies

3. Linux

Xlc compiler on Redhat Linux

Hi , Currently i have my c and pro*c code got compiled in IBM POWER - AIX machine with xlc compiler version 9. We are planning to migrate all our applications from IBM POWER - AIX to Redhat Linux. Can i use the same current (IBM AIX) xlc compiler with the same compiling... (3 Replies)
Discussion started by: mugunthanvh
3 Replies

4. Shell Programming and Scripting

GCC compiler installation on Linux OS

Need assistance in getting a GCC compiler on linux server . I wanted to install GCC compiler under local user . System doesnt have any compiler . Is there a way to get a compiler installed without a root user, cant install using (rpm, yum ) When I try to compile the gcc source i get the... (7 Replies)
Discussion started by: ajayram_arya
7 Replies

5. Linux

What's better for running Windows software in Linux, Wine or Windows VMware?

What are the differences, advantages, and disadvantages? (1 Reply)
Discussion started by: Advice Pro
1 Replies

6. Linux

C Compiler on LINUX

Hi, I am a new user for LINUX. I have started learning C programming. I have heard that there is gcc & g++ compilers already available on LINUX by default. Kindly guide where to find these compliers on LINUX. Regards (12 Replies)
Discussion started by: himvat
12 Replies

7. Red Hat

GCC compiler on linux box

Hi All, My main aim is to find the version of GCC compiler installed on linux box. Case 1: When i use gcc -v i get the foll. O/P Reading specs from /usr/lib/gcc-lib/i386-redhat-linux7/2.96/specs gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-128) case 2: when i use... (3 Replies)
Discussion started by: Ashok_oct22
3 Replies

8. Programming

UNIX Java Compiler on Windows

At work we use HP-UX B.11.11 U (garnished from uname -a), but they have not installed a development environment for java. There is, however, a runtime environment set up. I've been attempting to overcome the beauracracy of getting a jdk installed, but we all know how nearly impossible that can be.... (4 Replies)
Discussion started by: nwboy74
4 Replies

9. Ubuntu

MS basic compiler for linux

I have a client who's software is written in ms basic for xenix and compiled on SCO. They would like to get it running on Linux. Does anyone know if there is a MS Basic compiler avialable for Linux? Or is there a way for Linux to run an SCO application? Thanks (3 Replies)
Discussion started by: lochraven
3 Replies

10. Programming

Doubts About C Compiler In Unix/linux

As all of you know whenever a program "say a.c" is complied in linux using the gcc or the cc compiler..it shows the list of errors ( if the program contains any).. i want to modify the compier script so as to list the no of errors only and not the description about the error..like" parse error " ... (1 Reply)
Discussion started by: vrs
1 Replies
Login or Register to Ask a Question