LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   gcc c cross compiler to create linux executables on a windows system (https://www.linuxquestions.org/questions/programming-9/gcc-c-cross-compiler-to-create-linux-executables-on-a-windows-system-532241/)

Wanda Tinasky 02-25-2007 09:13 AM

gcc c cross compiler to create linux executables on a windows system
 
Hello,
I'm a student and because of several reasons, I need a gcc c compiler which is able to create linux code. This compiler should run on a windows system. It is for a friend of mine who uses a windows system but have to send (for the university course) the c-programs as sourcecode and linux binary files.

This are simple student programs (no graphical gui applications nor system stuff). Is there something available?
Thx

slantoflight 02-25-2007 09:36 AM

well you should be able to, atleast in theory, download something like dev C++

http://www.bloodshed.net/devcpp.html

Which nicely bundles a simple, but fairly good IDE with mingw. And after that. Somewhere in options theres a place for commands that are passed to gcc.

Should be as simple as --build=i386-linux-gnu, or maybe its target. Well you'll figure out I guess.


All times are GMT -5. The time now is 11:38 AM.