Include problem
Submitter-Id: net
Originator:
Organization: Warsaw Uniwersity
Confidential: no
Synopsis: Include problem
Severity: serious
Priority: medium
Category: c++
Class: rejects-legal
Release: 3.3.2 (Debian) (Debian testing/unstable)
Enviroment:
System Linux kasandra 2.4.20-wolk4.9s #1 Thu Sep 11 14:48:11 CEST 2003
i686 GNU/Linux
host: i486-pc-linux-gnu
build: i486-pc-linux-gnu
target: i486-pc-linux-gnu
configured with: ../src/configure -v
--enable-languages=c,c++,java,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=usr/include/c++/3.3 --enable-shared
--with-system-zlib --enable-nls --without-included-gettext
--enable-__cxa_atexit --enable-clocale=gnu --enable-debug
--enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc
i486-linux
Description: Sorry, my English is rather bad.
I wrote program (name "a.c"):
#include <string>
int
main(){
string aaa;
return 0;
}
and try:
g++ a.c
or
g++ -I/usr/include/c++/3.3 a.c
or:
g++ -I/usr/include/g++-3 a.c
in all situations it is imposible to compile this program. g++ doesn't
see 'string' declaration in firs two sitauations (g++ a.c and g++
-I/usr/include/c++/3.3 a.c ) and doesnt see 'size_t' in the third
compile (g++ -I/usr/include/g++-3 a.c)
How-To-Repeat:
Write it and try to compile
Fix: I don't know
Reply to: