On Tue, Aug 7, 2012 at 6:40 PM, Thomas Stover <cts@xxxxxxxxxxxxxxxx> wrote: > > I tried some more today to build a hello world C program. First I tried > it inside the anyboot image running on qemu, which worked fine. Back > with the cross compiler, I finished compilation with > > -I ./headers/posix/ -I ./headers/os/ > > but I still can't link. Based on error output I copied these files into > my working directory: crti.o crtn.o init_term_dyn.o start_dyn.o > When I specified the full path to these files it fails, but having them > in the same directory seems ok. Anyway the last error seems to be > > ./haiku/generated.x86gcc4/cross-tools/lib/gcc/i586-pc-haiku/4.6.2/../../../../i586-pc-haiku/bin/ld: > cannot find -lroot > > Any ideas? You need libroot.so. At one point I had a script which set up the cross compiler where it was usable outside the Haiku build system (when I was porting WebKit in 2007), but I don't have it on this machine and it may have been lost in my various computer upgrades. -- Regards, Ryan