boost:python
Norman Khine
norman at khine.net
Tue Aug 2 13:15:34 PDT 2011
i am not sure why, but the boost:python does not seem to work for me
when using MacPorts
$ port installed |grep boost
boost @1.42.0_0
boost @1.44.0_0
boost @1.44.0_0+python26
boost @1.45.0_1+python26
boost @1.47.0_0+python26 (active)
boost-jam @3.1.17_0
boost-jam @3.1.18_0 (active)
$ cat test.py
d = {
'key': 'value',
'another': 'yeah'
}
$ vim test.cpp
http://pastie.org/2310733
$ g++ -lboost_python -lpython2.6
-I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
test.cpp
test.cpp:1:28: error: boost/python.hpp: No such file or directory
test.cpp: In function ‘int main()’:
test.cpp:7: error: ‘Py_Initialize’ was not declared in this scope
test.cpp:10: error: ‘boost’ has not been declared
test.cpp:10: error: expected `;' before ‘main_module’
test.cpp:11: error: ‘boost’ has not been declared
test.cpp:11: error: expected `;' before ‘main_namespace’
test.cpp:14: error: ‘boost’ has not been declared
test.cpp:14: error: ‘boost’ has not been declared
test.cpp:14: error: ‘main_namespace’ was not declared in this scope
test.cpp:19: error: ‘boost’ has not been declared
test.cpp:19: error: expected `;' before ‘d’
test.cpp:23: error: ‘boost’ has not been declared
test.cpp:23: error: expected `;' before ‘d_dict’
test.cpp:26: error: ‘boost’ has not been declared
test.cpp:26: error: expected `;' before ‘iterkeys’
test.cpp:27: error: ‘boost’ has not been declared
test.cpp:27: error: ‘iterkeys’ was not declared in this scope
test.cpp:30: error: ‘boost’ has not been declared
test.cpp:30: error: expected primary-expression before ‘>’ token
test.cpp:31: error: ‘boost’ has not been declared
test.cpp:31: error: expected primary-expression before ‘>’ token
test.cpp:31: error: ‘d_dict’ was not declared in this scope
also when building Wt C++, this is the output I get:
-- Boost version: 1.47.0
-- Found the following Boost libraries:
-- date_time
-- regex
-- program_options
-- random
-- signals
-- system
-- filesystem
-- thread
Is finding the installed Boost, but no python! python.hpp is at
/opt/local/include/boost/
Any advise much appreciated
Norman
--
˙ʇı ɹoɟ ƃuıʎɐd ǝɹ,noʎ ʍou puɐ ǝɔıoɥɔ ɐ ʞooʇ ı ʇɐɥʇ sı 'ʇlnɔıɟɟıp sı ʇɐɥʍ
˙uʍop ǝpısdn p,uɹnʇ pןɹoʍ ǝɥʇ ǝǝs noʎ 'ʇuǝɯɐן sǝɯıʇ ǝɥʇ puɐ 'ʇuǝʇuoɔ
ǝq s,ʇǝן ʇǝʎ
%>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or
chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )
More information about the macports-users
mailing list