Compiling C codes

Post here if you are a new Porteus member and you're looking for some help.
User avatar
pato
Ronin
Ronin
Posts: 2
Joined: 13 Sep 2014, 23:25
Distribution: Porteus
Location: Rio Grande do Sul - Brazil

Compiling C codes

Post#1 by pato » 13 Sep 2014, 23:37

Hello boys, I'm a newbie in Porteus, so I'm confused with somethings.

Well... I'm trying to run some codes in C language with the Geany, but when I press the button to compile the code, I receive this output:

Code: Select all

gcc -Wall -o "teste" "teste.c" (in directory: /home/guest/Geany Projects/C)
Compilation failed.
teste.c:25:19: fatal error: stdio.h: No such file or directory
 #include "stdio.h"
                   ^
compilation terminated.
I installed the gcc, gcc-c++ thinking it would be enough to run C codes, but I was wrong. :wall:

Someone could help me?

Since now, I would like to thank everyone that will try to help me... A noob that speak english really badly. :oops:

User avatar
Slaxmax
Contributor
Contributor
Posts: 408
Joined: 03 Jan 2013, 09:51
Distribution: KDE4
Location: Campinas Brazil https://goo.gl/yrxwKi

Re: Compiling C codes

Post#2 by Slaxmax » 14 Sep 2014, 00:48

Seja bem vindo! Mais um brasileiro na turma do porteus.

You need devel.xzm module (module with gcc and other packages for devel)
For porteus x64
http://ponce.cc/porteus/x86_64/current/ ... -devel.xzm

For porteus i486
http://ponce.cc/porteus/i486/current/mo ... -devel.xzm
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead

User avatar
pato
Ronin
Ronin
Posts: 2
Joined: 13 Sep 2014, 23:25
Distribution: Porteus
Location: Rio Grande do Sul - Brazil

Re: Compiling C codes

Post#3 by pato » 14 Sep 2014, 17:45

Slaxmax wrote:Seja bem vindo! Mais um brasileiro na turma do porteus.

You need devel.xzm module (module with gcc and other packages for devel)
For porteus x64
http://ponce.cc/porteus/x86_64/current/ ... -devel.xzm

For porteus i486
http://ponce.cc/porteus/i486/current/mo ... -devel.xzm
Funcionou! Muito obrigado! :good:

It worked! Thank you! :good:

Post Reply