Dev-C++ x64 won't compile OpenMP code
A free, portable, fast and simple C/C++ IDE
Brought to you by:
orwelldevcpp
The code:
# include <cstdlib>
# include <iostream>
# include <omp.h>
using namespace std;
int main (int argc, char * argv [])
{
int i, j;
j = 0;
# pragma omp parallel for
for (i = 1; i <1000; i ++)
{
j = j +1;
}
cout << j;
system ("PAUSE");
return 0;
}
does not work in Dev-C + + x64
What errors are you getting exactly? It compiles fine here and produces 999 as a result (duh). Are you expecting specific assembler output?
And ehm, please read formatting help, and use the provided code tags.
Last edit: orwelldevcpp 2012-07-21
<omp.h></omp.h>
do not have the 64 version
pthreadGC2_64.dll
and
pthreadGC2_64.dll
none
*libgomp_64-1.dll
The compiler of such a library is not present.
He basically can not compile the code
Swears to include <omp.h></omp.h>
If you want I can make a video!
Sure, if it helps me to understand the problem.
I understand the problem now. I left out the threading dlls to make the TDM-GCC x64 package smaller. Will readd them to Dev-C++ 5.2.0.4 or 5.3. In the mean time, you can get them from the TDM-GCC site: http://tdm-gcc.tdragon.net/download
Without multi-threading computing too long my program works.
I need parallels cycles.
The final version of Dev-C++ 5.3 will fix all your problems. Until that version is released, please try:
- Download TDM-GCC x64 (33MB)
- Install it somewhere, and enable the 'openmp' option during installation
- Overwrite the MinGW64 folder of Dev-C++ with the created MinGW64 folder.
Last edit: orwelldevcpp 2012-08-07