[C++-sig] seg fault on IRIX
Stefan Seefeld
seefeld at sympatico.ca
Fri Oct 11 22:33:02 CEST 2002
David Abrahams wrote:
> Stefan, I doubt anyone can help you if you don't provide complete
> source code to your example, with a Python driver file.
Indeed. I attached a self-contained program to the first mail in this
thread. I compiled it with:
CC -D_REENTRANT -I/usr/local/include
-I/usr/local/include/boost/compatibility/cpp_c_headers
-I/usr/local/include/python2.2 -mips4 -n32 -LANG:std -TARG:proc=r5000
-fullwarn -woff 1424,1209,3201 -no_auto_include -woff
1174,1234,1375,1506,3303 -c pfe.cc -o pfe.o
CC -shared -Wl,-no_unresolved -Wl,-LD_MSG:error=157 -mips4 -n32
-LANG:std -TARG:proc=r5000 -o pfe.so pfe.o -L/usr/local/lib
-lboost_python_debug -L/usr/local/lib/python2.2/config -lpython2.2
-lpthread -lm
an then...
Python 2.2 (#1, Mar 4 2002, 08:53:03)
[GCC 2.95.3 20010315 (release)] on irix6
Type "help", "copyright", "credits" or "license" for more information.
>>> import pfe
>>> foo = pfe.Foo("bla")
>>> bar = foo.getBar()
Segmentation fault (core dumped)
Stefan
More information about the Cplusplus-sig
mailing list