Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29286 Discussions

OpenMP in Release mode with the new compiler

Chris_G_2
Beginner
584 Views

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

0 Kudos
2 Replies
mecej4
Honored Contributor III
584 Views

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.

0 Kudos
Chris_G_2
Beginner
584 Views

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

0 Kudos
Reply