I am trying to precompile part of my code which uses stxxl. I am getting this error, when doing experiments with compiling:
g++ -pthread -DSORT_OPTIMAL_PREFETCHING -DUSE_MALLOC_LOCK -DCOUNT_WAIT_TIME -I/software/stxxl-1.2.1/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Wall -g -DFOO=BAR library.h -pthread -L/software/stxxl-1.2.1/lib -lstxxl
/software/stxxl-1.2.1/include/stxxl/bits/containers/stack.h:494: internal compiler error: Bus error
i686-apple-darwin9-g++-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)
it is a very simple test code for illustration purposes:
------- library.h ------------
typedef stxxl::VECTOR_GENERATOR<int, 2, 2, 2*1024>::result intVector;
// typedef std::vector<int> intVector;
I'd appreciate some input, I don't know if I am doing something wrong in my makefile or form of defining the header file, or has something to do with the library.
this is a compiler bug, there could be nothing wrong in your makefile/headers. The solution is to use a newer g++ version.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.