T
Teddy
I have installed GNU C/C++ on my Linux and tried to compile my first
helloworld program. I tried this with the command:
cc helloworld.cpp -c -o helloworld.o && ld helloworld.o -lstdc++ -o
helloworld
And got the Error:
ld: warning: cannot find entry symbol _start; defaulting to 08048380
The program was created but does not work. What did I do wrong?
The source of my helloworld-program you can find at the end.
Thanks
Teddy
#include <iostream>
using std::cout;
using std::endl;
int main() {
cout << "Hello World" << endl;
return 0;
}
helloworld program. I tried this with the command:
cc helloworld.cpp -c -o helloworld.o && ld helloworld.o -lstdc++ -o
helloworld
And got the Error:
ld: warning: cannot find entry symbol _start; defaulting to 08048380
The program was created but does not work. What did I do wrong?
The source of my helloworld-program you can find at the end.
Thanks
Teddy
#include <iostream>
using std::cout;
using std::endl;
int main() {
cout << "Hello World" << endl;
return 0;
}