Page 1 of 1

Need help with build 64bit libc

Posted: Fri Dec 08, 2006 9:02 am
by Arthur
Hey guys, I'm creating a libc for my os which wrote(writting;) in C and build to 64bit code, I use gcc as compiler under 32bit Windows, it's easy to compile my code and link to 64bit binary, but I found no tool to make libc, I got "ar"(from mingw), but this version only supports 32bit objects, is there any other way to build libc? or a 32bit "ar" for windows that supports 64bit objects is somewhere available? Thanks.
Regards,
Arthur.

Posted: Fri Dec 08, 2006 11:29 am
by Candy
Using the Cross-Compiler FAQ, the first step gives you a set of binutils that supports 64-bit. You are advised to use a cross-compiler for all sorts of non-host compilations, since they don't assume the host environment which your host compiler does.

Posted: Sun Dec 10, 2006 8:19 am
by Arthur
Thank you. I'll try to compile ar for windows. BTW, I found suse 10.1 contains "ar" and it supports what I want. Fortunatelly, I use eclipse cdt as IDE, my project should be easilly shared with Windows and Linux.