Home Forums Gamescan Chat42 About
* Login   * Register * FAQ    * Search
It is currently Fri 11-21-2025 2:06AM

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: What's the syntax to compile C code with GNU?
PostPosted: Thu 02-24-2005 4:11PM 
Offline
Captain
User avatar

Joined: Tue 02-24-2004 10:30PM
Posts: 150

Source: TJ South
I have the source code for a program coded in C and I'm trying to compile it with the GNU compiler on the gpunix machines. Can someone help me out with the syntax for how to pass the source to the C compiler?

This how I learned to compile c++ code in CS 54.
g++ -W -Wall -s -pedantic-errors filename.cpp -o executableName

Is there anything similar to compile C code?


Top
 Profile E-mail  
    
 Post subject:
PostPosted: Thu 02-24-2005 4:12PM 
Offline
Brigadier General

Joined: Tue 01-22-2002 12:35PM
Posts: 1057
Location: Shawnee Mission, KS

Source: Off Campus
Use gcc instead of g++.


Top
 Profile E-mail  
    
 Post subject:
PostPosted: Thu 02-24-2005 4:14PM 
Offline
Captain
User avatar

Joined: Tue 02-24-2004 10:30PM
Posts: 150

Source: TJ South
Much appreciated. :D


Top
 Profile E-mail  
    
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group