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

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

<< < (2/22) > >>

snija:
gomp stands up for GNU Open MP
gcc 4.2 is the first version which supports this feature.
http://gcc.gnu.org/onlinedocs/gcc-4.2.0/libgomp/

TDragon:
Well then, have you tried "-fopenmp"? (http://gcc.gnu.org/onlinedocs/gcc-4.2.0/libgomp/Enabling-OpenMP.html)

snija:
Unfortunately, there`s no libgomp.a in lib directory.

patlecat:
I too have errors compiling the above mentioned simplest console program:

#include <iostream>

using namespace std;

int main()
{
   cout << "Hello world!" << endl;
   return 0;
}

...and got the following errors in CodeBlocks:

--- Code: ---:: === consoleTest, Release ===
obj\Release\main.o:main.cpp:(.text+0x30):: undefined reference to `std::ios_base::Init::Init()'
obj\Release\main.o:main.cpp:(.text+0x3e):: undefined reference to `std::ios_base::Init::~Init()'
obj\Release\main.o:main.cpp:(.text+0x99):: undefined reference to `std::cout'
obj\Release\main.o:main.cpp:(.text+0x9e):: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
obj\Release\main.o:main.cpp:(.text+0xa5):: undefined reference to `std::cout'
obj\Release\main.o:main.cpp:(.text+0xaa):: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
:: === Build finished: 6 errors, 0 warnings ===

--- End code ---

I did install TDragons gcc-4.1.2-mingw-setup.exe into a new directory, which should include all the necessary packages (except gdb) and just copied the files from gcc-4.2.0-tdm-1.7z over it. I manually replaced the gcc4.1.2 files in the bin directory with those from 4.2 and did the same in Codeblocks.

So, what is wrong??

TDragon:
@snija:
I'm afraid I have no idea what to do differently in order to have libgomp.a created; if you find out, though, I'd be more than happy to do a rebuild.

@patlecat:
I do not distribute "gcc-4.1.2-mingw-setup.exe"; I believe you're referring to Giovanni's installer available from http://www.develer.com/oss/GccWinBinaries. In any case, it may be that some files from the 4.1.2 package are confusing the new 4.2.0 package, so you should try installing it in a directory that doesn't already have a gcc package installed.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version