Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
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.
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.
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.