User forums > General (but related to Code::Blocks)

TDM's unofficial GCC 4.2.0 for MinGW (now with OpenMP, Fortran and Obj-C)

<< < (20/22) > >>

stahta01:
FYI:

I finally found the option to remove some warnings on compiling Code::Blocks.

warning: deprecated conversion from string constant
-Wno-write-strings

Edit: Sorry if this was already mentioned, the CB search did not find it, but CB search misses a lot of things.

Tim S

dwmcqueen:
Just checking - hard to tell when you are being sarcastic or straightforward

dwmcqueen:
But you have done much for the GCC compiler under MingW - and for that I appreciate your work!

jsibarani:
Thanks!

I have successfully compiled a monolithic dll and then compiled wxAui  sample

marouanebj:
Hi,
I don't know if it's the proper place.
But I have a probleme compiling a program with OpenMP.
1/ I installed the last release of MinGW with the installer 5.1.3
2/ I dowloaded the GCC 4.2.1 TDM 2 from http://www.tdragon.net/recentgcc/
3/ I putted them in C/MinGW
I use Eclipse to compile
this is the progam:
// ================================
// Hello World OpenMP
// program that write Hello word for each thread
// ================================
#include <omp.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
   int nthreads, tid;
   /* Fork a team of threads giving them their own copies of variables */
   #pragma omp parallel private(tid)
   {
      /* Obtain and print thread id */
      //tid = omp_get_thread_num();
      tid = 0;
      printf("Hello World from thread = %d\n", tid);
   
      /* Only master thread does this */
      if (tid == 0) {
         //nthreads = omp_get_num_threads();
         nthreads = 1;
         printf("Number of threads = %d\n", nthreads);
      }   
   }  /* All threads join master thread and terminate */
   return 0;
}
// =================
This is the console msg:
**** Build of configuration Release for project test gcc ****

**** Internal Builder is used for build               ****
gcc -O3 -g -Wall -c -fmessage-length=0 -fopenmp -osrc\main.o ..\src\main.c
gcc -otestgcc.exe src\main.o
src\main.o: In function `main':C:/Documents and Settings/marouane/eclipse_workspace/test gcc/Release/../src/main.c:9: undefined reference to `GOMP_parallel_start'
:C:/Documents and Settings/marouane/eclipse_workspace/test gcc/Release/../src/main.c:9: undefined reference to `GOMP_parallel_end'
collect2: ld returned 1 exit status
Build error occurred, build is stopped
Time consumed: 1063  ms.

can someone help me.
Thanks

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version