Hi everyone,
I'm not a programming n00b by any means, but my ability to troubleshoot CLI dev tools is relatively nil.
Here's my command and the subsequent error:
mario:~/Desktop chris$ g++ HelloWorld.cpp
ld: can't locate file for: -lcrt1.o
Any ideas? If I try it with the -c flag, it compiles but I can't do anything with it:
mario:~/Desktop chris$ gcc -c HelloWorld.cpp
mario:~/Desktop chris$ chmod +x HelloWorld.o
mario:~/Desktop chris$ ./HelloWorld.o
-bash: ./HelloWorld.o: Bad executable (or shared library)
I'm stumped.
I'm not a programming n00b by any means, but my ability to troubleshoot CLI dev tools is relatively nil.
Here's my command and the subsequent error:
mario:~/Desktop chris$ g++ HelloWorld.cpp
ld: can't locate file for: -lcrt1.o
Any ideas? If I try it with the -c flag, it compiles but I can't do anything with it:
mario:~/Desktop chris$ gcc -c HelloWorld.cpp
mario:~/Desktop chris$ chmod +x HelloWorld.o
mario:~/Desktop chris$ ./HelloWorld.o
-bash: ./HelloWorld.o: Bad executable (or shared library)
I'm stumped.