delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/30/01:55:34

Date: Wed, 30 Apr 1997 01:50:13 -0400 (EDT)
From: Laszlo Vecsey <master AT internexus DOT net>
To: DJ Delorie <dj AT delorie DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Updated Linux/DJGPP instructions
In-Reply-To: <199704290328.XAA04806@delorie.com>
Message-ID: <Pine.LNX.3.96.970430014930.7275B-100000@micro.internexus.net>
MIME-Version: 1.0

> > 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019