- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there,
I havebeen using Intel Visual Fortran Compiler 10.1 Professional Edition for Windows. The operation system is Windows XP.Recently, I started learning OpenMP. When I compile a simple program, I went to project properties andselected 'generate parallel code (/Qopenmp)' from 'process OpenMP directives' in Project/Properties/Fortran/Language.
I got error message 'unresolved external symbol _OMP_GET_NUM_THREADS referenced in function _MAIN' and 'unresolved external symbol _OMP_GET_THREADS_NUM referenced in function _MAIN'. What went wrong?
What is the correct procedure to compile the program with OpenMP. I have very limited experiences in programming. Detailed instruction is greatly appreciated.Attached is the simple example I used.
Thank you very much, maria
I havebeen using Intel Visual Fortran Compiler 10.1 Professional Edition for Windows. The operation system is Windows XP.Recently, I started learning OpenMP. When I compile a simple program, I went to project properties andselected 'generate parallel code (/Qopenmp)' from 'process OpenMP directives' in Project/Properties/Fortran/Language.
I got error message 'unresolved external symbol _OMP_GET_NUM_THREADS referenced in function _MAIN' and 'unresolved external symbol _OMP_GET_THREADS_NUM referenced in function _MAIN'. What went wrong?
What is the correct procedure to compile the program with OpenMP. I have very limited experiences in programming. Detailed instruction is greatly appreciated.Attached is the simple example I used.
Thank you very much, maria
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check Link properties, General section, enable Link Library Dependencies
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your program builds fine for me when /Qopenmp is enabled - no other settings are necessary.
Please attach the buildlog.htm from the Debug or Release folder, after doing a Rebuild of the solution, so we can see what is being used.
Please attach the buildlog.htm from the Debug or Release folder, after doing a Rebuild of the solution, so we can see what is being used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
Your program builds fine for me when /Qopenmp is enabled - no other settings are necessary.
Please attach the buildlog.htm from the Debug or Release folder, after doing a Rebuild of the solution, so we can see what is being used.
Please attach the buildlog.htm from the Debug or Release folder, after doing a Rebuild of the solution, so we can see what is being used.
Steve, the problem is solved. After several tries, I found that /Qopenmp is enabled in Active(debug) Configuration but not in Debug and Release Configuration. When I reset /Qopenmp for Debug and Release configuration, the program builds fine now.
Thanks a lot.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page