Not logged inCSS-Forum
Forum CSS-Online Help Search Login
CSS-Shop Impressum Datenschutz
Up Topic Hauptforen / CSS-Forum / Glaurung 2.2 kompilieren
- - By Horst Roessner Date 2009-02-07 09:40
Hallo,

versuche seit Tagen Glaurung 2.2 aus den Sourcen unter Vista 64 mittels MinGW, genauer tdm-mingw-1.812.0-f1 mit gcc 4.3.2, zu kompilieren. Leider will es mir nicht gelingen. Erhalte immer Fehlermeldungen der Art:
||=== Glaurung, Debug ===|
obj\Debug\movepick.o:D:\dev\dev-c++\Gerry\Gerry\movepick.cpp|194|undefined reference to `_imp__pthread_mutex_lock'|
obj\Debug\movepick.o:D:\dev\dev-c++\Gerry\Gerry\movepick.cpp|196|undefined reference to `_imp__pthread_mutex_unlock'|
obj\Debug\movepick.o:D:\dev\dev-c++\Gerry\Gerry\movepick.cpp|201|undefined reference to `_imp__pthread_mutex_unlock'|
obj\Debug\search.o:D:\dev\dev-c++\Gerry\Gerry\search.cpp|2038|undefined reference to `_imp__pthread_mutex_destroy'|
obj\Debug\search.o:D:\dev\dev-c++\Gerry\Gerry\search.cpp|2029|undefined reference to `_imp__pthread_mutex_init'|

hat jemand eine Tip.
Danke schon mal.

Gruß Horst
Parent - - By Karl-Heinz Milaster Date 2009-02-07 13:16
Hallo,

da fehlt die die korrekte (Posix-)Thread-Bibliothek, aber das wirst Du wahrscheinlich selber wissen.

Gruss,
khm
Parent - By Horst Roessner Date 2009-02-07 13:52
Hallo,

ja, soweit ist mir das klar. Leider beantwortet das nicht die Frage nach der korrekten Bibliothek.
Mein Compiler enthält die neueste Version von pthread, nur scheinbar ist es die nicht.

Gruß
Horst
Parent - - By Kay Schoenberger Date 2009-02-07 13:26
Das liegt möglicherweise daran, dass unter MinGW (oder allgemeiner unter Windows-Systemen) die 'pthread.h' nicht zur Verfügung steht. Vielleicht ist hier http://mirror.facebook.com/sourceware/pthreads-win32/ eine Lösung.

MfG, Kay
Parent - By Horst Roessner Date 2009-02-07 14:47
leider nicht, denn genau diese pthread ist in meinem (experimentellen) MinGW enthalten.
Parent - - By Tord Romstad (Glaurung) Date 2009-02-07 14:56
Hello Horst,

What happens if you add -D_MSC_VER to CXXFLAGS and LDFLAGS in the Makefile?  I think this should force the program to use native Windows threads instead of Posix threads, and assuming that MinGW supports native Windows threads (which seems reasonable, but as I am no Windows user, I cannott be sure), everything should work fine.

Tord
Parent - By Horst Roessner Date 2009-02-07 23:07
Hi Tord,

you are right. With native Windows Thread there is no Problem.
Thanks a lot.

Greetings
Horst
Up Topic Hauptforen / CSS-Forum / Glaurung 2.2 kompilieren

Powered by mwForum 2.29.3 © 1999-2014 Markus Wichitill