yesterday i installed g++ from the following page.
i have a macbook.
and i wrote a very simple skript-code:
std::cout << "Hallo, du schöne Welt!";
now i started g++ with the following command in terminal:
g++ -o runtest ./scriptcode
but nothing happens, only the following text was open.
but i dont understand what g++ mean with the following textoutput
ld: warning: ignoring file ./scriptcode, file was built for unsupported file format which is not the architecture being linked (x86_64)
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
can anybody help me to create my first textoutput application.
thank you so much!!!!!