Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » Problem when compiling multiple threads
Problem when compiling multiple threads [message #27372] Thu, 15 July 2010 08:39 Go to next message
mubeta is currently offline  mubeta
Messages: 77
Registered: October 2006
Member
Hi,

when I compile an GUI MT application, the MINGW compiler say:

C:\upp_2467\uppsrc\Draw\DrawLock.cpp:11: error: thread-local storage not supported for this target
C:\upp_2467\uppsrc\Draw\Font.cpp:273: error: thread-local storage not supported for this target
C:\upp_2467\uppsrc\Draw\Font.cpp:335: error: thread-local storage not supported for this target
C:\upp_2467\uppsrc\Draw\Font.cpp:362: error: thread-local storage not supported for this target
C:\upp_2467\uppsrc\Draw\Font.cpp:363: error: thread-local storage not supported for this target
C:\upp_2467\uppsrc\Draw\Font.cpp:364: error: thread-local storage not supported for this target

??
Re: Problem when compiling multiple threads [message #27373 is a reply to message #27372] Thu, 15 July 2010 09:47 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 693
Registered: December 2005
Location: Budapest, Hungary
Contributor
AFAIK, thread local storage is not supported in MINGW.
Switch to MS compiler. It is freely available and much faster than MINGW.
Re: Problem when compiling multiple threads [message #27383 is a reply to message #27373] Thu, 15 July 2010 12:47 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
zsolt wrote on Thu, 15 July 2010 09:47

AFAIK, thread local storage is not supported in MINGW.
Switch to MS compiler. It is freely available and much faster than MINGW.

I agree.

Anyway you can use the mingw compiler here:
http://sourceforge.net/projects/upp/files/upp/1517/mingw_4_4 _0.7z/download

It will work.



Best regards
IƱaki
Re: Problem when compiling multiple threads [message #27386 is a reply to message #27383] Thu, 15 July 2010 14:06 Go to previous messageGo to next message
mubeta is currently offline  mubeta
Messages: 77
Registered: October 2006
Member
With MSC9 I only get more troubles:

C:\upp_2467\uppsrc\Core/Core.h(144) : fatal error C1083: Impossibile aprire il file inclusione 'windef.h': No such file or directory.

I found MSC9 in the Microsoft web site, inclded in: Microsoft Visual Studio 10.0. The donwload was without problems.

I used TheIde Automatic setup, lot of time. In the include directory of MSC9 I don't found any "windef.h".

Maybe MINGW will be better.
Re: Problem when compiling multiple threads [message #27393 is a reply to message #27386] Thu, 15 July 2010 14:56 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 693
Registered: December 2005
Location: Budapest, Hungary
Contributor
Try this.
Re: Problem when compiling multiple threads [message #27438 is a reply to message #27393] Sat, 17 July 2010 22:54 Go to previous messageGo to next message
mubeta is currently offline  mubeta
Messages: 77
Registered: October 2006
Member
Ok for MSC9 and SDK32 ... (lot of troubles for donwload all).

Now, compiling the application I get thi s two complains:

C:\upp_2467\uppsrc\Core\Debug.cpp(233) : warning C4390: ';' : empty controlled statement found; is this the intent?

C:\upp_2467\uppsrc\plugin\z\lib\gzio.c(131) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable d
eprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

With google I undertand that only second complain is serius point, but without a standard solution for different compiler, and both can be hide using #pragma ...

Where can do it, without touch U++ code??

Thanks.
Re: Problem when compiling multiple threads [message #27557 is a reply to message #27438] Fri, 23 July 2010 11:19 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
mubeta wrote on Sat, 17 July 2010 16:54

Ok for MSC9 and SDK32 ... (lot of troubles for donwload all).

Now, compiling the application I get thi s two complains:

C:\upp_2467\uppsrc\Core\Debug.cpp(233) : warning C4390: ';' : empty controlled statement found; is this the intent?

C:\upp_2467\uppsrc\plugin\z\lib\gzio.c(131) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable d
eprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

With google I undertand that only second complain is serius point, but without a standard solution for different compiler, and both can be hide using #pragma ...



It is not a problem at all. It is just M$ playing smart ass, invalidating most of standard C library for "security reasons".

Happily ignore the warning. In U++ code you will not get these, but plugin/z is opensource library created according to existing standards.

Mirek
Previous Topic: PROPOSAL: Monitor mutex in objects
Next Topic: HttpsClient problems?
Goto Forum:
  


Current Time: Thu Mar 28 19:56:29 CET 2024

Total time taken to generate the page: 0.01781 seconds