User forums > Help

Compile OpenMp File

<< < (2/2)

killerbot:
as said link with the omp library

killerbot:
looked up my CB-OMP projects.

This is what you need to do :

compiler options : -fopenmp
linker options : add the library : libgomp

Snipper from the cbp file :

--- Code: --- <Compiler>
<Add option="-Wall" />
<Add option="-fexceptions" />
<Add option="-fopenmp" />
</Compiler>
<Linker>
<Add library="libgomp" />
</Linker>

--- End code ---

Jenna:
In the Projects "Build options -> Linker settings -> Link libraries" itshould be enough to add "gomp" (the lib prefix will not be used on commandline, just "-lgomp").

Navigation

[0] Message Index

[*] Previous page

Go to full version