Enviado em 17/01/2012 - 19:19h
Eu escrevi um hello world aqui mas não tô conseguindo compilá-lo via terminal.
Eu escrevi ele com o nano e é um arquivo cpp do C++.
jose@sabayon ~/programas $ gcc -o hello.cpp hello
gcc: error: hello: Arquivo ou diretório não encontrado
gcc: fatal error: no input files
compilation terminated.
GCC:
jose@sabayon ~/programas $ gcc --version
gcc (Gentoo 4.6.2 p1.0, pie-0.4.5) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Será que tem que instalar o build-essentials ou compatível? Help!
Eu escrevi ele com o nano e é um arquivo cpp do C++.
jose@sabayon ~/programas $ gcc -o hello.cpp hello
gcc: error: hello: Arquivo ou diretório não encontrado
gcc: fatal error: no input files
compilation terminated.
GCC:
jose@sabayon ~/programas $ gcc --version
gcc (Gentoo 4.6.2 p1.0, pie-0.4.5) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Será que tem que instalar o build-essentials ou compatível? Help!