Mail Archives: djgpp/2001/10/10/15:18:05
On Wed, 10 Oct 2001, ROLAND wrote:
>
> --- Hans-Bernhard Broeker
> <broeker AT physik DOT rwth-aachen DOT de> wrote:
> > ROLAND <roland_asmann AT yahoo DOT com> wrote:
> >
> > > I want to compile a certain program I made, which
> > uses
> > > some standard header files. My new cross-compiler
> > > tells me he can't find these header-files!
> >
> > Then find out where it's looking for them, and then
> > see why they're
> > not there. Add '-v' to the compiler flags and among
> > lots of other
> > debugging output, you'll get to see the list of
> > directories it's
> > looking for #include <...> and #include "..." files
> > in.
> >
> Well, It is looking for some header-files in the
> include-dir from my cross-compiler, but the standard
> header-files are in /usr/include.
> Only thing is, the files in /usr/include are used on
> my sparc... Can I use these on my PC to?
>
Under Linux I have:
andris AT hal:~$ i586-pc-msdosdjgpp-gcc -v -c hello.c
Reading specs from /usr/lib/gcc-lib/i586-pc-msdosdjgpp/3.0.2/specs
Configured with: ../gcc/configure --build=i586-pc-linux-gnu
--host=i586-pc-linux-gnu --target=i586-pc-msdosdjgpp
--with-as=/usr/bin/i586-pc-msdosdjgpp-as
--with-ld=/usr/bin/i586-pc-msdosdjgpp-ld --disable-nls --prefix=/usr
--enable-languages=c,c++,f77,objc --enable-version-specific-runtime-libs
Thread model: single
gcc version 3.0.2 20010912 (prerelease)
/usr/lib/gcc-lib/i586-pc-msdosdjgpp/3.0.2/cc1 -lang-c -v -D__GNUC__=3
-D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=2 -D__MSDOS__ -D__GO32__
-D__unix__ -D__MSDOS__ -D__GO32__ -D__unix__ -Asystem=msdos -Asystem=unix
-D__NO_INLINE__ -D__STDC_HOSTED__=1 -remap -imacros
/usr/lib/gcc-lib/i586-pc-msdosdjgpp/3.0.2/djgpp.ver -Acpu=i386
-Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i586__
-D__tune_pentium__ -DMSDOS -DGO32 -Dunix hello.c -quiet -dumpbase hello.c
-version -o /tmp/ccGFBxX3.s
GNU CPP version 3.0.2 20010912 (prerelease) (cpplib) (80386, BSD syntax)
GNU C version 3.0.2 20010912 (prerelease) (i586-pc-msdosdjgpp)
compiled by GNU C version 3.0.2 20010912 (prerelease).
ignoring duplicate directory "/usr/i586-pc-msdosdjgpp/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc-lib/i586-pc-msdosdjgpp/3.0.2/include
/usr/i586-pc-msdosdjgpp/sys-include
End of search list.
/usr/bin/i586-pc-msdosdjgpp-as --traditional-format -o hello.o
/tmp/ccGFBxX3.s
andris AT hal:~$
DJGPP headers are in /usr/i586-pc-msdosdjpp/sys-include which in real life
is symlink to DJGPP include directory on VFAT partition.
/usr/i586-pc-msdosdjgpp/include points to the same directory.
Andris
- Raw text -