[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: newbie trying to compile with g++ for first time
From: |
Janette |
Subject: |
Re: newbie trying to compile with g++ for first time |
Date: |
19 Jul 2005 16:37:22 -0700 |
User-agent: |
G2/0.2 |
Further to my original post, I have tried again and this time used
g++ c:/test.cpp -o test
I changed my test.cpp to contain (direct paste)
#include <iostream>
int main()
{
std::cout << "HELLO WORLD";
}
I managed to use the "pause break" button to allow me to stop the
scrolling of errors and see what the first error was. It is as follows
In file included from /usr/include/c++/3.3.1/cstdio:50,
from
/usr/include/c++/3.3.1/i686-pc-cygwin/bits/c++io.h:35,
from /usr/include/c++/3.3.1/bits/fpos.h:44,
from /usr/include/c++/3.3.1/iosfwd:49,
from /usr/include/c++/3.3.1/ios:44,
from /usr/include/c++/3.3.1/ostream:45,
from /usr/include/c++/3.3.1/iostream:45,
from c:/test.cpp:1:
/usr/include/c++/3.3.1/cstddef:48:20: stddef.h: No such file or
directory
As there something else I need to add to my system path variable so it
can find the various libraries?
Thanks
Janette