Boost logo

Boost :

From: Xavier Warin (xavier.warin_at_[hidden])
Date: 2001-08-14 01:35:32


max wrote:

> I tried to compile boost.python 1.20.2 with KCC4.0e on linux7.1.
> Libary compilation seems fine and libboost_python.a was created. But
> when I tried to compile test programs, it gives me errors. I tried two
> programs, comprehensive.cpp in ./test directory and abstract.cpp in
> ./example directory, both gave me errors.
>

I didn't tried the examples given. I tried my own programs. I succeeded in mapping the
C++ objects to the python object methods without problems.
The only point that didn't compile was this kind of stuff.
class toto {
    double get(double t) {return t :}
    double get(double t,double u) {return u;}
}

KCC isn't able to connect methods to python if you have the same name for the method
but different arguments.
You have to use instead :
class toto {
    double get1(double t) {return t :}
    double get2(double t,double u) {return u;}
}
Then it works. It's the only point that caused me problems.
I know that boost isn't supporting KCC officialy. But it's true that it the best
optimized C++ compiler i have seen....
If you want i can send you the file i use to connect my programs.

Xavier


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk