I have installed gcc using YaST2, but c-files won’t be compiled.
I’m not familiar with this way of compiling, always used some software, like Eclipse, NetBean, etc prior to this. Well ehmm I’m not really sure of what to do now. I bashed which gcc and got /usr/bin/gcc . Do I have to tinker with the gcc in that folder to be able to compile c-files…?
electricFuzz:
I have installed gcc using YaST2, but c-files won’t be compiled.
Bash Wrote:
> …@linux-oxrd :~/Dokument> gcc hello.c
> hello.c:1:20: fatal error: stdio.h: Filen eller katalogen finns inte
> compilation terminated.
> …@linux-oxrd :~/Dokument>
I’m not familiar with this way of compiling, always used some software,
like Eclipse, NetBean, etc prior to this. Well ehmm I’m not really sure
of what to do now. I bashed -which gcc- and got -/usr/bin/gcc-. Do I
have to tinker with the gcc in that folder to be able to compile
c-files…?
cat hello.c
#include <stdio.h>
main()
{
printf("hello, world
");
}
gcc hello.c -o hello
../hello
hello, world
–
Cheers Malcolm °¿° (Linux Counter #276890 )
openSUSE 12.1 (x86_64) Kernel 3.1.0-1.2-desktop
up 17:44, 6 users, load average: 0.06, 0.07, 0.05
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU
Huh… I’m not sure if I should try to figure out what I did wrong, or just take a glass of red wine and relax. Ah well… Typo maybe.
I’d go for the wine and relax
–
Cheers Malcolm °¿° (Linux Counter #276890 )
openSUSE 12.1 (x86_64) Kernel 3.1.0-1.2-desktop
up 18:20, 5 users, load average: 0.05, 0.03, 0.05
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU
lenwolf
January 29, 2012, 11:49am
5
Hi,
you can also install Ecplise or Netbeans in openSUSE.
HTH
lenwolf