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 » GuiMT compilation error on ubuntu12.04
GuiMT compilation error on ubuntu12.04 [message #41896] Tue, 04 February 2014 14:17 Go to next message
deep is currently offline  deep
Messages: 227
Registered: July 2011
Location: Bangalore
Experienced Member
Hi

I am getting following error while compling GuiMT example.
ubuntu 12.04 UPP6860. I was getting this error with previous version also upp 67xx.
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

It is working fine on win7 msc10.

Mostly I am missing something.


----- CtrlLib ( GUI MT GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (1 / 9)
----- CtrlCore ( GUI MT GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (2 / 9)
----- PdfDraw ( GUI MT GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (3 / 9)
----- Draw ( GUI MT GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (4 / 9)
----- plugin/bmp ( GUI MT GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (5 / 9)
----- RichText ( GUI MT GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (6 / 9)
----- Core ( GUI MT GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (7 / 9)
lheap.cpp
----- plugin/png ( GUI MT GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (8 / 9)
pnglib.c
pngupp.cpp
pngreg.icpp
/home/deep/upp/uppsrc/Core/lheap.cpp: In function ‘const char* Upp::asString(int)’:
/home/deep/upp/uppsrc/Core/lheap.cpp:19:11: error: ‘__thread’ before ‘static’
/home/deep/upp/uppsrc/Core/lheap.cpp:20:11: error: ‘__thread’ before ‘static’
Core: 1 file(s) built in (0:00.34), 348 msecs / file, duration = 700 msecs, parallelization 98%
plugin/png: 3 file(s) built in (0:01.20), 402 msecs / file, duration = 1556 msecs, parallelization 84%


Warm Regards

Deepak
Re: GuiMT compilation error on ubuntu12.04 [solved] [message #41906 is a reply to message #41896] Wed, 05 February 2014 11:18 Go to previous messageGo to next message
deep is currently offline  deep
Messages: 227
Registered: July 2011
Location: Bangalore
Experienced Member
Hi

I changed the code as follows.

Original code
const char *asString(int i)
{
	thread__ static char h[4][1024];
	thread__ static int ii;
	ii = (ii + 1) & 3;
	sprintf(h[ii], "%d", i);
	return h[ii];
}



Changed to
const char *asString(int i)
{
	static thread__ char h[4][1024];
	static thread__ int ii;
	ii = (ii + 1) & 3;
	sprintf(h[ii], "%d", i);
	return h[ii];
}


It is now compiling and working with my installation.
This change is working on WIN7 MSC10 also.


Warm Regards

Deepak

[Updated on: Thu, 06 February 2014 03:30]

Report message to a moderator

Re: GuiMT compilation error on ubuntu12.04 [solved] [message #42010 is a reply to message #41906] Mon, 10 February 2014 20:14 Go to previous message
mirek is currently offline  mirek
Messages: 13051
Registered: November 2005
Ultimate Member
Thank you, sorry for missing that so far (it is mere warning in my gcc version).
Previous Topic: [SOLVED] A problem with TcpSocket::GetLine()
Next Topic: Problem using TcpSockets
Goto Forum:
  


Current Time: Sat Jan 23 17:54:04 CET 2021

Total time taken to generate the page: 0.01684 seconds