[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

compiling 32 bit on amd64 using ia32-libs(novice)

Hi all,
I have a pure64 installation with ia32-libs. I tried compiling a simple "Hello world" program in 32-bit mode and it is unable to locate the relavent 32bit i386 libraries.

command:linux32 gcc -m32 -march=i386 hello.c
/usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-linux/3.3.4/./libgcc.a when searching for -lgcc /usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-linux/3.3.4/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status

I am able to run 32 bit apps, But unable to compile them. Is there something I am missing? Is the ia32-libs pkg only for running programs and not for development?


Reply to: