Problems compiling in g++
hello, i'm using the g++ compiler but i can't run my programs.
i do this:
for example,
g++ -c helloworld.cpp
then:
g++ -static helloworld.o -o helloworld
this creates a program in binary format called helloworld but when write helloworld in command line, it throws 'bash: helloworld: command not found'.
please help me
|