Author Topic: TDM's unofficial GCC 4.2.0 for MinGW (now with OpenMP, Fortran and Obj-C)  (Read 113278 times)

Offline asdz

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: TDM's unofficial GCC 4.2.0 for MinGW (now with OpenMP, Fortran and Obj-C)
« Reply #105 on: November 21, 2007, 09:27:59 pm »
I am using NetBeans 6.0 on Windows XP...
I have add with success the GCC 4.2 build for Windows....
But i can't still now to compile a simple OpenMP code...
I have added -fopenmp compile option but still nothing...

Any advice? :S

Offline Grom

  • Almost regular
  • **
  • Posts: 206
Re: TDM's unofficial GCC 4.2.0 for MinGW (now with OpenMP, Fortran and Obj-C)
« Reply #106 on: November 21, 2007, 10:05:36 pm »
see OpenMP tutorial. You have to make your's program parallel manually with something like that #pragma omp parallel for.
gcc+winXP+suse.

Offline asdz

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: TDM's unofficial GCC 4.2.0 for MinGW (now with OpenMP, Fortran and Obj-C)
« Reply #107 on: November 22, 2007, 09:14:22 am »
I am already running the simple Hello World - OpenMP code in NetBeans where i have these problems...
The same code is compiled fine on my machine in visual Studio 2005.... That's why i want some help with NetBeans 6.0 - OpenMP...

Offline asdz

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: TDM's unofficial GCC 4.2.0 for MinGW (now with OpenMP, Fortran and Obj-C)
« Reply #108 on: December 02, 2007, 11:15:57 pm »
I am already running the simple Hello World - OpenMP code in NetBeans where i have these problems...
The same code is compiled fine on my machine in visual Studio 2005.... That's why i want some help with NetBeans 6.0 - OpenMP...
anyone?

Offline JacK-DuRdEn_

  • Single posting newcomer
  • *
  • Posts: 7
Re: TDM's unofficial GCC 4.2.0 for MinGW (now with OpenMP, Fortran and Obj-C)
« Reply #109 on: December 19, 2007, 09:40:02 pm »
hi i was having problems with netbeans too, but i finally worked it out.
i had to modify the file libgomp.spec in the lib directory so it looks like this:

Code: [Select]
# This spec file is read by gcc when linking.  It is used to specify the
# standard libraries we need in order to link

with -fopenmp.
*link_gomp: -lgomp -lpthread

then i modified the file Makefile-Debug.mk (you should also modify Makefile-Release.mk if using that target; this file are
located in your project's "nbproject" directory)
adding "-fopenmp" (without quotes) to the CCFLAGS, CXXFLAGS, CFLAGS and LDLIBSOPTIONS lines. Maybe not
all of them are necessary but it works and it doesn't hurts xD you could figure out which one's are useless anyway.

sorry for posting info about other ide >_<