This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: linking problem, please help
- From: "Dockeen" <dockeen at mchsi dot com>
- To: <cygwin at cygwin dot com>
- Date: Mon, 23 Dec 2002 09:10:32 -0600
- Subject: RE: linking problem, please help
Well, in your code:
> >#include<iostream>
> >
> > int main()
> > {
> > cout<<"\n hello world";
> > return 0;
> > }
I see one thing wrong. The cout functions name comes from
the standard namespace, so you either have to add:
using namespace std;
or qualify the name, i.e.
std::cout
I don't know if that is causing your specific problem, but
I would give it a shot. When I am compiling test code by
the way, I will just do
g++ test.cpp
and let it throw my code into a.exe, but I am also lazy.
Wayne
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/