Date: Wed, 30 Apr 1997 01:50:13 -0400 (EDT) From: Laszlo Vecsey To: DJ Delorie cc: djgpp AT delorie DOT com Subject: Re: Updated Linux/DJGPP instructions In-Reply-To: <199704290328.XAA04806@delorie.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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. Thanks, I got it working. I had to specify the full path for -Tdjgpp.lnk in specs, that was the only other problem i ran into. Now, the final step. Rather than having to run 'go32-v2.exe hello.exe', how can I get the cross compiler to output a complete, ready-to-go executable? - lv