usr/lib/gcc/i686-pc-linux-gnu/4.4.3 emtyapp.cpp
"
but building failed and output is:
"
/usr/bin/ld: warning: cannot find entry symbol _start; defaulting to
0000000008048094
/tmp/ccydsmUH.o: In function `main':
emtyapp.cpp:(.text+0x11): undefined reference to `puts'
/tmp/ccydsmUH.o:(.eh_frame+0x12): undefined reference to
`__gxx_personality_v0'
collect2: ld returned 1 exit status
"
So i need help:
how to build it? or what is more specific group for 32-64-cross-
compiling ?
The complaints are all about things that would normally be located in
the standard library.
Try recompiling your program without the '-nostdlib' option.
Bart v Ingen Schenau
no, without '-nostdlib' output is:
"
/usr/bin/ld: skipping incompatible /lib/libc.so.6 when searching for /
lib/libc.so.6
/usr/bin/ld: cannot find /lib/libc.so.6
collect2: ld returned 1 exit status
"
There is either something broken in your installation ("incompatible
/lib/libc.so.6") or, having removed -nostdlib from your option list,
what remains - i.e., the -L options - is incorrect for your
installation. In either case, this is not an issue with the language
and, as such, should really be taken up in a forum or mailing list that
discusses such issues for your particular compiler. I think some have
been suggested already.
To give a hint here merely (although offtopic), it seems that you added
-nostdlib in an attempt to get around the initial error posted above.
This merely distracted you and the error you need to deal with directly
is why your compiler is trying to pick up an "incompatible
/lib/libc.so.6" and then - quite rightly, as it is incompatible -
rejecting it.
Paul is correct, but I'll be even more explicit... What the heck