Date: Mon, 28 Apr 1997 23:28:24 -0400 Message-Id: <199704290328.XAA04806@delorie.com> From: DJ Delorie To: master AT internexus DOT net CC: djgpp AT delorie DOT com In-reply-to: (message from Laszlo Vecsey on Mon, 28 Apr 1997 22:05:34 -0400 (EDT)) Subject: Re: Updated Linux/DJGPP instructions Precedence: bulk > Does anyone have updated instructions on how to build a gcc cross compiler > on Linux, so I can create DJGPP .exe's on my linux box? > > I followed the info in the FAQ, but I'm running into the following > problem at compilation: > > gcc-dos hello.c -o hello.exe > /usr/lib/gcc-lib/i386-go32-msdos/2.7.2.2/ld: warning: cannot find entry > symbol _start; defaulting to 000010a8 > /usr/i386-go32-msdos/lib/libc.a(_main.o)(.text+0x1a):_main.c: undefined > reference to `djgpp_last_ctor' You've hit a tricky part. The "specs" file goes in a different place when you're cross compiling. Mine is in (for example): /usr/local/lib/gcc-lib/i386-go32-msdos/2.7.2/specs The specs file gives the extra linker argument -Tdjgpp.lnk and djgpp.lnk is also in (for example) (with the .a files): /usr/local/lib/gcc-lib/i386-go32-msdos/2.7.2/djgpp.lnk Try using "gcc-dos -v hello.c -o hello.exe" instead. That will help you figure out the paths and such.