This is the mail archive of the cygwin@cygwin.com 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: 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/


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