Menu

#20 Dev-C++ x64 won't compile OpenMP code

None
fixed
None
2014-08-25
2012-07-21
sfinexer
No

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

Discussion

  • orwelldevcpp

    orwelldevcpp - 2012-07-21

    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
  • sfinexer

    sfinexer - 2012-07-21

    <omp.h></omp.h>

    do not have the 64 version

    pthreadGC2_64.dll
    and
    pthreadGC2_64.dll
    none

     
  • sfinexer

    sfinexer - 2012-07-21

    *libgomp_64-1.dll

     
  • sfinexer

    sfinexer - 2012-07-21

    The compiler of such a library is not present.
    He basically can not compile the code
    Swears to include <omp.h></omp.h>

     
  • sfinexer

    sfinexer - 2012-07-21

    If you want I can make a video!

     
  • orwelldevcpp

    orwelldevcpp - 2012-07-21

    Sure, if it helps me to understand the problem.

     
  • orwelldevcpp

    orwelldevcpp - 2012-07-21

    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

    • status: open --> accepted
    • assigned_to: orwelldevcpp
     
  • sfinexer

    sfinexer - 2012-08-07

    Without multi-threading computing too long my program works.
    I need parallels cycles.

     
  • orwelldevcpp

    orwelldevcpp - 2012-08-07

    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
  • orwelldevcpp

    orwelldevcpp - 2012-08-07
    • status: accepted --> fixed
     
  • orwelldevcpp

    orwelldevcpp - 2012-08-07
    • summary: Dev-C + + x64 Nei compiles code --> Dev-C++ x64 won't compile OpenMP code
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.