Results 1 to 3 of 3
hai every body
i hav installed opensuse 10.2 in my laptop... but i can't compile c programs ... when i try to compile there appeared an error message that "cc ...
- 04-28-2007 #1Just Joined!
- Join Date
- Apr 2007
- Posts
- 1
compiling c programs in suse linux
hai every body
i hav installed opensuse 10.2 in my laptop... but i can't compile c programs ... when i try to compile there appeared an error message that "cc comand not found". wats the problem with that.. some people are sayin that suse comes without gcc,.. some are saying that its there... if its there, how can i comile the program.. if its not there what should I do? please help me....
- 04-28-2007 #2
Hi fazilsajeer,
Welcome to the LinuxForums,
use 'gcc' or 'gcc++' to compile C/C++ programs.
if you get 'command not found' error again, install 'gcc' through Yast, software management. its available in Installation CD/DVD.Code:gcc hello.c ./a.out
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 04-28-2007 #3
also
Code:gcc filethatcontainscode.c -o thenameoftheexecutable ./nameoftheexecutable


Reply With Quote