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>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>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 ==========


Downloadapplication/octet-stream simple.f906.82 KB
3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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!

Leave a Comment

Please sign in to add a comment. Not a member? Join today