[pygccxml-development] First Try: call policies
Brought to you by:
mbaas,
roman_yakovenko
|
From: Matthias J. <mat...@gm...> - 2007-06-04 20:23:34
|
hi,
I have a simple auto generated 'basictest2.cpp' and a 'basictest2.hpp'. when I try to build the Py++ code I get some warnings about need of call policy: as this is my first try I got a bit stuck
Any help would be most appreciated:
****CODE: basictest2.cpp
#include "basictest2.hpp"
namespace __basictest2__ {
str *const_0;
str *__name__;
void __init() {
const_0 = new str("Basic Test OK");
__name__ = new str("basictest2");
}
str *basictest2() {
return const_0;
}
} // module namespace
__ END
****CODE: basictest2.hpp
#ifndef __BASICTEST2_HPP
#define __BASICTEST2_HPP
#include "builtin.hpp"
using namespace __shedskin__;
namespace __basictest2__ {
extern str *const_0;
extern str *__name__;
extern str * __name__;
void __init();
str *basictest2();
} // module namespace
#endif
__ END
WARNING: extern __shedskin__::str * __basictest2__::basictest2() [free function]
> compilation error W1050: The function returns "__shedskin__::str *"
> type. You have to specify a call policies.Be sure to take a look on
> Py++ defined call policies: http://language-
> binding.net/pyplusplus/documentation/functions/call_policies.html#py-
> defined-call-policies
WARNING: __basictest2__::const_0 [variable]
> compilation error W1035: Py++ can not expose static pointer member
> variables. This could be changed in future.
WARNING: __shedskin__::str [class]
> execution error W1040: The declaration is unexposed, but there are
> other declarations, which refer to it. This could cause "no to_python
> converter found" run time error. Declarations: extern
> __shedskin__::str * __basictest2__::basictest2() [free function]
> __test__::x [variable]
Thanks Matthias J.
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
|