User forums > Using Code::Blocks
Compiler directives
(1/1)
Ronschk:
Hi, I don't know if that's the correct word, so here is my problem:
I want to use Openmp, but the compiler says, there is an undefined refernce to 'omp_ste_num_threads'. I know that the programm is correct and I guess I know what to problem is: I have to add -fopenmp somewhere. But I don't know where.
thank you
p.s. There's probably already a thread about this topic, but I didn't know what to search for. sorry
oBFusCATed:
If it is compiler option: Project -> Build options -> Compiler -> Other
If it is linker option: Project -> Build options -> Linker -> Other
You need a project for this to work.
Ronschk:
okay thank you.
still had some problems, but I found a nice tut. If someone else wants to do parallel programming and doesn't know how to include omp, just watch this short tutorial.
http://www.youtube.com/watch?v=p0woqF2XCeg&feature=player_embedded#
Navigation
[0] Message Index
Go to full version