OpenMP in Release mode with the new compiler

OpenMP in Release mode with the new compiler

I'm teaching myself OpenMP programming. The enclosed code (which I downloaded from the web) compiles and runs OK in Debug mode. In Release mode I get:

1>------ Build started: Project: OpenMP, Configuration: Release Win32 ------
1>Linking...
1>Simple.obj : error LNK2019: unresolved external symbol _omp_get_wtime referenced in function _MAIN__
1>Release\OpenMP.exe : fatal error LNK1120: 1 unresolved externals
1>
1>Build log written to  "file://c:\users\chris\documents\visual studio 2010\Projects\OpenMP\Release\BuildLog.htm"
1>OpenMP - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

ChrisG

AdjuntoTamaño
Descargar simple.f906.82 KB
publicaciones de 3 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.
Imagen de mecej4

You probably do not have the /Qopenmp option set in the configuration that did not build. Examining the build-log file would confirm this suspicion.

Ooops! Thanks. I shouldn't work early on Sunday morning!

Inicie sesión para dejar un comentario.