[C++-sig] embbed simple example failed

Olaf Peter ope-devel at gmx.de
Wed Sep 3 21:14:00 CEST 2008


Hi,

I get mad on this snipped; I've got:

$ g++ -I /usr/include/python2.5 bpl.cpp -o bpl -l boost_python -l
python2.5 && ./bpl
  File "<string>", line 1
    print("Hello World\n")
        ^
SyntaxError: invalid syntax
something went wrong

What did I wrong???

Thanks,
Olaf

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bpl.cpp
Type: text/x-c++src
Size: 1897 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20080903/419ccf0f/attachment.cpp>


More information about the Cplusplus-sig mailing list