Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Compiling C programs

views
     
TSTereno
post Feb 25 2006, 06:42 PM, updated 20y ago

Tenacious Midfielder
******
Senior Member
1,619 posts

Joined: Jan 2003
From: Land of the Polar Bears!


Hey there. I am using Dev C++ for programming in C. I would like to compile my programs so that they will be "a.out" instead of "a.exe". How do I do this? I have tried compiling under Cygwin which is a UNIX port..It used to give me the "out" extension but now it just gives me the "exe" extension. Anyone know?
amirsubhi
post Feb 25 2006, 07:20 PM

The Power Is IN Your Hand!
******
Senior Member
1,472 posts

Joined: Apr 2005
From: SumwHeRe In MaLaYsIa



hurm..nope sure bout windows...if at linux..simply gcc -g blabla.c -o blabla.out
TSTereno
post Feb 25 2006, 07:25 PM

Tenacious Midfielder
******
Senior Member
1,619 posts

Joined: Jan 2003
From: Land of the Polar Bears!


bleh..looks like i have to go back to linux to do my assignment..though i really wish that i can do it over windows..it worked before but for some strange reason, it doesn't anymore..
TSTereno
post Feb 25 2006, 07:43 PM

Tenacious Midfielder
******
Senior Member
1,619 posts

Joined: Jan 2003
From: Land of the Polar Bears!


alright..i've found out that by default the compiler compiles to exe..and it uses gcc..

also noticed that -o beta beta.c will automatically result in beta.exe unless i specify an ending to it.

This post has been edited by Tereno: Feb 25 2006, 07:43 PM
SnoWFisH
post Feb 25 2006, 09:05 PM

Look at all my stars!!
*******
Senior Member
2,250 posts

Joined: Jan 2003
From: Penang / Bentong, Pahang / Genting



just go download a gcc command line compiler lo...i think ming gcc compiler can do it.

 

Change to:
| Lo-Fi Version
0.0258sec    0.88    5 queries    GZIP Disabled
Time is now: 23rd December 2025 - 01:16 PM