The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Still unable to compile pro*c program satvd Shell Programming and Scripting 1 05-20-2008 09:47 AM
Certification Programme for Unix Shell Scripting ganapati What's on Your Mind? 14 02-07-2008 08:06 AM
porting a unix programme to linux??what matters prasoon UNIX for Advanced & Expert Users 1 11-11-2005 10:17 AM
how to compile in unix? mono UNIX for Dummies Questions & Answers 2 07-22-2002 04:22 PM
Unable to compile ANSI compatible code on HP-UX jyotipg HP-UX 9 10-18-2001 10:02 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-28-2006
vasudeva vasudeva is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 5
Smile Unable to compile the c programme in unix

Hi,

My name is vreddy and I am learning c language now and written one programme on vi editor.

how do I compile the programme please give me some advice and that would be helpfull for me.

thanks
vre
  #2 (permalink)  
Old 11-28-2006
vasudeva vasudeva is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 5
[QUOTE=vasudeva]Hi,

My name is vreddy and I am learning c language now and written one programme on vi editor.

how do I compile the programme please give me some advice and that would be helpfull for me.

thanks
vre
  #3 (permalink)  
Old 11-28-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,928
Code:
cc program.c -o program
./program
  #4 (permalink)  
Old 11-29-2006
Pradeep.P. Pradeep.P. is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 2
To compile c code in unix

cc -c programname.c
  #5 (permalink)  
Old 11-29-2006
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,944
Quote:
Originally Posted by Pradeep.P.
cc -c programname.c
The above command will not produce an exe.
The option is instructing the compiler not to run the linker and the output is only the object file.
  #6 (permalink)  
Old 11-29-2006
vasudeva vasudeva is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 5
Still I am getting a problem with compiling

When I am using this command cc hello.c -o hello
ksh cc not found
where do I set up
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:40 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0