Home » U++ Library support » U++ MT-multithreading and servers » GuiMT compilation error on ubuntu12.04
Re: GuiMT compilation error on ubuntu12.04 [solved] [message #41906 is a reply to message #41896] |
Wed, 05 February 2014 11:18 |
|
deep
Messages: 263 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
|
|
|
Goto Forum:
Current Time: Thu Apr 25 14:20:24 CEST 2024
Total time taken to generate the page: 0.02517 seconds
|