Thanks for the answer. We needed to state the libraries to link to to the linker. ld .... /llibname. Isn´t djgpp 32-bit for windows developer environment ? We are using a m68k cross compiler (gcc-m68k for DOS), so I dont think using djgpp is a good idea ! Does anyone know if it is difficult to make this cross-compiler compile C++ code and link it with ld ? Morten Boll, Master Student in CS at DIKU Uni. of Copenhagen Andrei A. Dergatchev wrote in message news: 38753fa3.46216045@news.nic.utwente.nl ... > I want to ask in > > comp.os.msdos.djgpp > > (or check deja for that NG) > > HTH > > Andrei > > On Thu, 6 Jan 2000 03:44:39 +0100, "Morten Boll" > wrote: > > >Does ne1 know of a good installation guide for installation of GNU GCC > >compiler accessible on the net? > > > >We have copied all the files to "C:\GCC" - but whenever we try to compiles > >it comes with a linker error, like > > hello.o(.text+0x12):hello.c: undefined reference to `__main' > > hello.o(.text+0x1c):hello.c: undefined reference to `printf' > > > >Any help would be appreciated, thnx > > > >/Kasper and Morten > > > > > > >