Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
Developer forums (C::B DEVELOPMENT STRICTLY!)
»
Development
»
libgomp pthread dependancy
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: libgomp pthread dependancy (Read 9055 times)
reckless
Regular
Posts: 353
libgomp pthread dependancy
«
on:
December 17, 2010, 03:33:18 pm »
took some reading into the interlock functions but i managed to create a working static wrapper library simulating pthreads, from the winpthread source.
the benefit is you dont need the pthread library anymore if linking with libgomp (nor the dll's).
Logged
reckless
Regular
Posts: 353
Re: libgomp pthread dependancy
«
Reply #1 on:
December 17, 2010, 04:13:28 pm »
http://code.google.com/p/mingw-wine/downloads/detail?name=winpthread.7z&can=2&q=
forgot link.
Logged
xunxun
Almost regular
Posts: 187
Re: libgomp pthread dependancy
«
Reply #2 on:
December 18, 2010, 03:46:49 am »
pthreads with static build?
You must compile the libgomp with the "-DPTW32_STATIC_LIB".
Logged
Regards,
xunxun
reckless
Regular
Posts: 353
Re: libgomp pthread dependancy
«
Reply #3 on:
December 18, 2010, 12:38:21 pm »
this is not redhats pthreads win32
its a wrapper library using windows atomic functions.
i found it some time back in the mingw64 experimental trunk.
had to change a few interlocked defines to get it compiling on win32 (InterlockedAdd seems to be missing on win32 changed to use interlockedExchangeAdd).
Logged
xunxun
Almost regular
Posts: 187
Re: libgomp pthread dependancy
«
Reply #4 on:
December 18, 2010, 01:23:19 pm »
Sorry for my English. I don't understand your meaning. I usually compile the libgomp with static pthread ( make clean GC-static
), and the libgomp compiling option is added "-DPTW32_STATIC_LIB". We can get a static libgomp, and don't need the pthread dll.
Logged
Regards,
xunxun
reckless
Regular
Posts: 353
Re: libgomp pthread dependancy
«
Reply #5 on:
December 18, 2010, 07:59:27 pm »
ok ill try to explain.
its a replacement for redhats pthreads win32 library.
the main differences are that it uses native windows functions for the atomic operations instead of a posix layer (i hope this explains it a bit better).
Logged
xunxun
Almost regular
Posts: 187
Re: libgomp pthread dependancy
«
Reply #6 on:
December 19, 2010, 04:11:06 am »
I see, you mean the replacement is the package of win32 api? That's very great, but I don't know how stably it works, and the package functions and the pthread should be compatible.
Logged
Regards,
xunxun
reckless
Regular
Posts: 353
Re: libgomp pthread dependancy
«
Reply #7 on:
December 19, 2010, 06:47:09 pm »
so far i had no problems with it
so atleast for libgomp i consider it stable.
still its experimental so yes it might break.
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
Developer forums (C::B DEVELOPMENT STRICTLY!)
»
Development
»
libgomp pthread dependancy