delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/03/03:56:48

Message-ID: <389926E3.73ABF15A@flash.net>
From: Sergei Severin <sergeis AT flash DOT net>
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: compilation errors
Lines: 58
Date: Thu, 03 Feb 2000 06:52:04 GMT
NNTP-Posting-Host: 209.30.145.60
X-Complaints-To: abuse AT flash DOT net
X-Trace: news.flash.net 949560724 209.30.145.60 (Thu, 03 Feb 2000 00:52:04 CST)
NNTP-Posting-Date: Thu, 03 Feb 2000 00:52:04 CST
Organization: FlashNet Communications, http://www.flash.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

i am new to gjgpp. it was  suggested for one of my cs classes. i
downloaded and configured the latest distribution on my win nt box. now
as long as i use the standard .h headers, i can compile and build my
programs just fine. if, however, i attempt to use something like

#include <string>
#include <vector>

etc. the compiler displays errors. Here is an example:

// test.cpp
#include <string>

int main() {
 string s = "blahblah";
 return 0;
}

building it as
gxx test.cpp

produces the following list of messages.

In file included from c:/djgpp/lang/cxx/std/bastring.h:39,
                 from c:/djgpp/lang/cxx/string:6,
                 from test.cpp:1:
c:/djgpp/lang/cxx/alloc.h:18: stl_config.h: No such file or directory
 (ENOENT)
c:/djgpp/lang/cxx/alloc.h:21: stl_alloc.h: No such file or directory
(ENOENT)
In file included from c:/djgpp/lang/cxx/std/bastring.h:44,
                 from c:/djgpp/lang/cxx/string:6,
                 from test.cpp:1:
c:/djgpp/lang/cxx/iterator:30: stl_config.h: No such file or director
y (ENOENT)
c:/djgpp/lang/cxx/iterator:31: stl_relops.h: No such file or director
y (ENOENT)
In file included from c:/djgpp/lang/cxx/iterator:36,
                 from c:/djgpp/lang/cxx/std/bastring.h:44,
                 from c:/djgpp/lang/cxx/string:6,
                 from test.cpp:1:
c:/djgpp/lang/cxx/iostream.h:31: streambuf.h: No such file or directo
ry (ENOENT)
In file included from c:/djgpp/lang/cxx/std/bastring.h:44,
                 from c:/djgpp/lang/cxx/string:6,
                 from test.cpp:1:
c:/djgpp/lang/cxx/iterator:38: stl_iterator.h: No such file or direct
ory (ENOENT)


all the files above that the compiler cannot find do exist.
my env variables seems to be set according to the instructions.
does anyone know what else needs to be done to make it work with non .h
headers?

thanks


- Raw text -


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