delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/07/09:45:22

From: jlrubin AT bway DOT net (Josh Rubin)
Newsgroups: comp.os.msdos.djgpp
Subject: gdb can't find stl include files
Date: Sun, 07 Jun 1998 13:44:55 GMT
Organization: ISPNews http://ispnews.com
Lines: 70
Message-ID: <357a95fd.269791@news1.bway.net>
NNTP-Posting-Host: dial-tulip-41.bway.net
Mime-Version: 1.0
NNTP-Posting-Date: 7 Jun 1998 13:45:03 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

GDB can't find stl include files.

The problem occurs with the file cxx/stl_vect.h
which is included several levels down by the full name <stl_vector.h>

I use MSDOS v 6.20,  4Dos v 5.0

Contents of test.cc:

#include <stl.h>

int main()
{
  vector<int> v(10);
  return 0;
}

C:\JSC1> gxx -v -gstabs test.cc

Reading specs from c:/dj281/lib/gcc-lib/djgpp/2.81/specs
gcc version 2.8.1
 c:/dj281/lib/gcc-lib/djgpp/2.81/cpp.exe -lang-c++ -v -undef
-D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=8 -Dunix
-Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=1 -D__unix__ -D__i386__
-D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=1 -D__unix
-D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=1
-D__EXCEPTIONS -gstabs test.cc C:\TEMP/ccaq4ove
GNU CPP version 2.8.1 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 c:/dj281/lang/cxx
 c:/dj281/lib/gcc-lib/djgpp/2.81/include
 c:/dj281/include
End of search list.
 c:/dj281/lib/gcc-lib/djgpp/2.81/cc1plus.exe C:\TEMP/ccaq4ove -quiet
-dumpbase test.cc -gstabs -version -o C:\TEMP/ccbq4ove
GNU C++ version 2.8.1 (djgpp) compiled by GNU C version 2.8.1.
 as -o C:\TEMP/cccq4ove C:\TEMP/ccbq4ove
 ld c:/dj281/lib/gcc-lib/djgpp/2.81/crtf.o c:/dj281/lib/crt0.o
-Lc:/dj281/lib/gcc-lib/djgpp/2.81 -Lc:/dj281/lib C:\TEMP/cccq4ove
-lstdcxx -lm -lgcc -lc -lgcc -Tdjgpp.djl
 stubify -v a.out
stubify for djgpp V2.X executables, Copyright (C) 1995 DJ Delorie
stubify: a.out -> a.000 -> a.exe

C:\JSC1> gdb a.exe

GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for
details.
GDB 4.16 (go32), Copyright 1996 Free Software Foundation, Inc...
(gdb) b main
Breakpoint 1 at 0x1dc6: file test.cc, line 5.
(gdb) r
Starting program: c:/jsc1/a.exe 

Breakpoint 1, main () at test.cc:5
5         vector<int> v(10);
(gdb) s
vector<int, __default_alloc_template<false, 0> >::vector
(this=0x67898, n=10)
    at c:/dj281/lang/cxx/stl_vector.h:101
c:/dj281/lang/cxx/stl_vector.h:101: No such file or directory
(ENOENT).


Josh Rubin
jlrubin AT bway DOT net

- Raw text -


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