A
Andrey Rusanov
Hi,
i have 64-bit linux (arch) and i'm trying to build 32-bit application.
application is "emtyapp.cpp" file, listed below:
"
#include <cstdio>
int main ()
{
printf("hello world\n");
return 0;
}
"
my build command is:
"
g++ -m32 -nostdlib -L/opt/lib32/lib -L/opt/lib32/usr/lib -L/opt/lib32/
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 ?
i have 64-bit linux (arch) and i'm trying to build 32-bit application.
application is "emtyapp.cpp" file, listed below:
"
#include <cstdio>
int main ()
{
printf("hello world\n");
return 0;
}
"
my build command is:
"
g++ -m32 -nostdlib -L/opt/lib32/lib -L/opt/lib32/usr/lib -L/opt/lib32/
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 ?