Page 1 of 1

Compiling C codes

Posted: 13 Sep 2014, 23:37
by pato
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:

Re: Compiling C codes

Posted: 14 Sep 2014, 00:48
by Slaxmax
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

Re: Compiling C codes

Posted: 14 Sep 2014, 17:45
by pato
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: