- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I try to write simple code for multiprocessing but I have error lnk2019 !
The code is:
Program testme
use omp_lib
implicit none
integer numproc
numproc=-1
numproc=omp_get_num_procs()
print *,numproc
end program testme
And this is my information:
Cpu : AMD Phenon2-940 3000Ghz
Where is my problem guys?
I try to write simple code for multiprocessing but I have error lnk2019 !
The code is:
Program testme
use omp_lib
implicit none
integer numproc
numproc=-1
numproc=omp_get_num_procs()
print *,numproc
end program testme
And this is my information:
Cpu : AMD Phenon2-940 3000Ghz
Where is my problem guys?
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apparently, you didn't turn on the OpenMP option in Visual Studio Fortran properities for your project. You make an explicit
OpenMP function call, so you must instruct ifort to compile and link with OpenMP.
OpenMP function call, so you must instruct ifort to compile and link with OpenMP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you turned on the OpenMP option? It is part of the preprocessor options in Visual Studio.
Regards,
Arjen
Regards,
Arjen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fortran > Language options...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks to all it is work now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I have a similar problem. what do yo do exactly to solve the problem withLNK2019?
Thanks
I have a similar problem. what do yo do exactly to solve the problem withLNK2019?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you also using OpenMP? LNK2019 could have many different causes, depemding on your program

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