This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Incorrect g++ include file path for cygwin 1.5.5-1

> From: Jim Van Sciver
> Sent: Thursday, October 23, 2003 5:42 PM

> I've just installed the latest cygwin, in part to get
> the latest version gnu compiler.  Compling code that
> relies on C++ standard libraries, e.g. #include <string>,
> fail because the include files are not found in the
> compiler's default include path.  My installation was
> to the default directory, c:/cygwin.
> I'm going to hand correct my installation.  Hopefully
> someone can correct this in a future release.
> Thanks,
> Jim Van Sciver


$ cat >
#include <string>
#include <iostream>
using namespace std;
int main() {
  string s("Hello, world.");
  cout << s << endl;
  return 0;

$ g++

$ ./a
Hello, world.

$ uname -a
CYGWIN_NT-5.0 P450 1.5.6s(0.94/3/2) 20031002 00:47:53 i686 unknown unknown

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- printf("Timezone: %s\n", (DST)?"UTC+02":"UTC+01"); --

Verbose mode on:
$ g++ -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/specs
Configured with:
/netrel/src/gcc-3.3.1-2/configure --enable-languages=c,c++,f77,java --enable
-libgcj --enable-threads=posix --with-system-zlib --enable-nls --without-inc
luded-gettext --enable-interpreter --enable-sjlj-exceptions --disable-versio
n-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc
-cygwin --target=i686-pc-cygwin --prefix=/usr --exec-prefix=/usr --sysconfdi
r=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecdir=/usr
Thread model: posix
gcc version 3.3.1 (cygming special)

/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/cc1plus.exe -quiet -v -D__GNUC__=3 -D_
D__unix__ -D__unix -idirafter
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../include/w32api -idirafter
nclude/w32api -D__GNUG__=3 -quiet -dumpbase -auxbase
chk -version -o /cygdrive/d/TEMP/ccm7hnXR.s
GNU C++ version 3.3.1 (cygming special) (i686-pc-cygwin)
        compiled by GNU C version 3.3.1 (cygming special).
GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32710
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/i686-pc-cygwin/include"
ignoring duplicate directory "/usr/i686-pc-cygwin/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
End of search list.

--traditional-format -o /cygdrive/d/TEMP/ccVuAzPi.o

/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/collect2.exe -Bdynamic --dll-search-pr
efix=cyg /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../crt0.o
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/crtbegin.o -L/usr/lib/gcc-lib/i686-pc-
cygwin/3.3.1 -L/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../..
/cygdrive/d/TEMP/ccVuAzPi.o -lstdc++ -lgcc -lcygwin -luser32 -lkernel32 -lad
vapi32 -lshell32 -lgcc /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/crtend.o


Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]