free hit counter

Monday, April 03, 2006

python vs qt: namespace collision

This is why the #define is bad, and namespaces are good. QT #defines their keyword slots, but python's object.h defines a struct member with the name slots. Try to use both libraries without carefull header inclusion order is a cryptic error message about a missing semicolon in python's object.h

The solution is to include all the boost stuff before QT stuff. May be easier said than done.

linkage

0 Comments:

Post a Comment

<< Home