Your code worked for me with the following configuration.
Your code worked for me with the following configuration: Snow Leopard gcc version 4.2.1 (AppleInc. Build 5646) Boost 1.41.0 installed to /usr/local/boost/1_41_0/ Stock OSX Python 2.5 Compiled using: g++ -I/Developer/SDKs/MacOSX10.6. Sdk/System/Library/Frameworks/Python. Framework/Versions/2.6/include/python2.6/ -I/usr/local/boost/1_41_0/include -L/usr/local/boost/1_41_0/lib/ -boost_python -L/usr/lib/python2.6/config -lpython2.6 test.cpp.
I tried with Boost 1.42, GCC 4.2 and Python 2.5; still does not work. I have yet to test it with Snow Leopard... – Etienne de Martel Jul 7 '10 at 4:17.
No sure if it is help. I worked on Windows and found the same error when I run the same code. The reason is that when running the program the wrong python dll is loaded.
Here I expect python32. Dll to be load but python27. Dll is loaded at certain stage.
You can find this at the out put window of MSVS 2008. This means the boost. Python lib the programe depends is build against python27.dll.'quickstart.
Exe': Loaded 'X:\boost\boost-python-sample\Debug\quickstart. Exe', Symbols loaded.'quickstart. Exe': Loaded 'C:\WINDOWS\system32\ntdll.
Dll' 'quickstart. Exe': Loaded 'C:\WINDOWS\system32\kernel32. Dll' 'quickstart.
Exe': Loaded 'C:\WINDOWS\system32\python32. Dll' 'quickstart. Exe': Loaded 'C:\WINDOWS\system32\user32.
Dll' 'quickstart. Exe': Loaded 'C:\WINDOWS\system32\gdi32. Dll' 'quickstart.
Exe': Loaded 'C:\WINDOWS\system32\advapi32. Dll' 'quickstart. Exe': Loaded 'C:\WINDOWS\system32\rpcrt4.
Dll' 'quickstart. Exe': Loaded 'C:\WINDOWS\system32\secur32. Dll' 'quickstart.
Exe': Loaded 'C:\WINDOWS\system32\shell32. Dll' 'quickstart. Exe': Loaded 'C:\WINDOWS\system32\msvcrt.
Dll' 'quickstart. Exe': Loaded 'C:\WINDOWS\system32\shlwapi. Dll' 'quickstart.
Exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft. VC90. CRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_d495ac4e\msvcr90.
Dll' 'quickstart. Exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft. VC90.
DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_5d84dd2f\msvcp90d. Dll' 'quickstart. Exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.
VC90. DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_5d84dd2f\msvcr90d. Dll' 'quickstart.
Exe': Loaded 'X:\boost\boost-python-sample\Debug\boost_python-vc90-mt-gd-9.41480_1. Dll' 'quickstart. Exe': Loaded 'C:\WINDOWS\system32\python27.
Dll' 'quickstart. Exe': Loaded 'C:\WINDOWS\system32\imm32. Dll' 'quickstart.
Exe': Loaded 'C:\WINDOWS\system32\lpk. Dll' 'quickstart. Exe': Loaded 'C:\WINDOWS\system32\usp10.
Dll' 'quickstart. Exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows. Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\comctl32.
Dll' 'quickstart. Exe': Loaded 'C:\WINDOWS\system32\comctl32. Dll' First-chance exception at 0x7c812afb in quickstart.
Exe: Microsoft C++ exception: boost::python::error_already_set at memory location 0x0012fb40.. The program '2704 quickstart. Exe: Native' has exited with code 0 (0x0). To fix this error you should rebuild the Boost.
Python lib against correct python lib file.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.