Could your guys see what is wrong with my following c++ extension code?
Heollo, guys,
I try to wrap a c++ extension class requiring qt lib
through boost.python, I failed always because of the
following error:
c:\Python23\include\object.h(343): error C2059: syntax
error : ';'
My code will link to qt-2.30nc lib (window version).
I don't know why. Can someone give ahint how to fix
it?
Thank you very much.
Fang
-----------------------------------------------
#ifndef IMAGEPROCESS_H
#define IMAGEPROCESS_H
#ifdef IMAGEPROCESS_EXPORTS
#define IMAGEPROCESS_API __declspec(dllexport)
#else
#define IMAGEPROCESS_API __declspec(dllimport)
#endif
#include
Shunming Fang
Heollo, guys, I try to wrap a c++ extension class requiring qt lib through boost.python, I failed always because of the following error: c:\Python23\include\object.h(343): error C2059: syntax error : ';'
My code will link to qt-2.30nc lib (window version). I don't know why. Can someone give ahint how to fix it?
Your first #include file must always be a Boost.Python header. HTH, -- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (2)
-
David Abrahams
-
Shunming Fang