[SOLVED] Re: OpenMP

Andrea Venturoli ml at netfence.it
Mon Aug 31 14:20:17 UTC 2009


Daniel Underwood ha scritto:
>> However, the program crashes with a Bad system call as soon as it calls
>> std::getline.
> 
> Can we see the code?

No, sorry (not my code, not my decision).

However, I solved this issue:

as I said, I linked with

g++42 -o test.exe test.o lib.a -L/usr/local/lib -lstdc++ -lm -lGL -lc 
-fopenmp

I found out "-lstdc++", "-lm" and "-lc" are not needed any more, though 
I can't trace at which point they were (older FreeBSD? older gcc? ...?).
Removing "-lc" the "Bad system call" doesn't show up anymore.

Thank you very much for your help.

  bye
	av.


More information about the freebsd-questions mailing list