Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Compiling Issues In C Using Windows and Linux (http://www.go4expert.com/forums/compiling-issues-c-using-windows-linux-t7629/)

pc_doctor 30Nov2007 03:17

Compiling Issues In C Using Windows and Linux
 
Hi,

When compiling in emacs in linux i can not run the .exe in windows, though i can in Linux.

How do i compile a .c program to run in Windows?

And likewise when compiling in Dev-C and trying to run the .exe in Linux it doesn't work.

Any help would be grateful

Jon

Salem 30Nov2007 18:04

Re: Compiling Issues In C Using Windows and Linux
 
The source code is portable, not the resulting executable.

You copy your .c file to your Linux box, and use gcc to compile it.

You copy your .c file to your windows box, and use dev-c++ to compile it.


All times are GMT +5.5. The time now is 20:30.