Re: [GXemul-users] Errors with SVN
Status: Alpha
Brought to you by:
gavare
From: Anders G. <ga...@gm...> - 2009-08-15 22:53:33
|
Fre 2009-08-14 klockan 10:49 +0100 skrev Nigel Horne: > Anders, > > I'm having trouble linking the latest version in SVN on my Debian machine: > > ... > /usr/include/c++/4.4/parallel/find.h:221: undefined reference to > `omp_init_lock' Strange. Is this with default compiler options (i.e. CXXFLAGS="")? Or have you enabled OpenMP or parallel code generation in some way? GXemul's M88K_CPUComponent.cc includes <algorithm> for "find", which (as far as I know) shouldn't require anything regarding parallel support. Can you compile something like the following, without linker errors? #include <algorithm> #include <vector> using std::vector; int main(int argc, char *argv[]) { vector<int> vec; vec.resize(42); vec[18] = 123; if (find(vec.begin(), vec.end(), 123) == vec.end()) return 1; return 0; } Anders PS. I've put up a page at http://gxemul.sourceforge.net/build.html with results from builds on machines that I have access to. DS. |