Using C++ and ctypes together: a vast conspiracy? ;)

Roy Smith roy at panix.com
Thu Jun 4 02:02:51 CEST 2009


In article <mailman.1055.1244038474.8015.python-list at python.org>,
 "A. Cavallo" <a.cavallo at mailsnare.com> wrote:

> On Wednesday 03 June 2009 14:05:35 Roy Smith wrote:
> > #include <iostream>
> > int main(int argc, char * argv[])
> > {
> >     std::cout << "SyntaxError: can't assign to function call";
> >     std::cout << endl;
> > }
> 
> Ops,
> I've forgotten ....
> 
> a.cpp: In function ‘int main(int, char**)’:
> a.cpp:5: error: ‘endl’ was not declared in this scope
> 
> Oh C++ joy!

I suppose I *did* deserve that :-)



More information about the Python-list mailing list