www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Compiling in 64 system 32 bit program

reply Dan900 <darkandan gmail.com> writes:
I have GDC 64 on Linux Fedora 11, i wanna compile program to 32 bit systems
but i have 64 bit system. Is this possible? when i type "--target-help" i have
this error "gdc: error trying to exec 'cc1': execvp: Not Found"
Jun 01 2009
parent reply =?UTF-8?B?QW5kZXJzIEYgQmrDtnJrbHVuZA==?= <afb algonet.se> writes:
Dan900 wrote:
 I have GDC 64 on Linux Fedora 11, i wanna compile program to 32 bit systems
 but i have 64 bit system. Is this possible? when i type "--target-help" i have
 this error "gdc: error trying to exec 'cc1': execvp: Not Found"

To compile 32-bit programs, you use the -m32 flag. --anders
Jun 01 2009
parent reply Dan900 <darkandan gmail.com> writes:
[Dan900 localhost bin]$ ./gdc -m32 dupa.d
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status

??
Jun 01 2009
parent reply =?UTF-8?B?QW5kZXJzIEYgQmrDtnJrbHVuZA==?= <afb algonet.se> writes:
Dan900 wrote:
 [Dan900 localhost bin]$ ./gdc -m32 dupa.d
 /usr/bin/ld: crt1.o: No such file: No such file or directory
 collect2: ld returned 1 exit status

You will also need the 32-bit runtime libraries*... By default you would only have the 64-bit variants. * the package would be "glibc-devel", I believe So something like: yum install glibc-devel.i386 --anders
Jun 01 2009
parent Dan900 <darkandan gmail.com> writes:
Yeah Thanks! It Work!.

"yum install glibc-devel.i586"

Dan900 wrote:
 [Dan900 localhost bin]$ ./gdc -m32 dupa.d
 /usr/bin/ld: crt1.o: No such file: No such file or directory
 collect2: ld returned 1 exit status

You will also need the 32-bit runtime libraries*... By default you would only have the 64-bit variants. * the package would be "glibc-devel", I believe So something like: yum install glibc-devel.i386 --anders
Jun 01 2009