U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ MT-multithreading and servers » [SOLVED] Unable to compile MT applications (weird assembler error with GCC on Linux i386 arch)
Re: Unable to compile MT applications (weird assembler error with GCC on Linux i386 arch) [message #42214 is a reply to message #42186] Thu, 27 February 2014 22:06 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1267
Registered: August 2007
Senior Contributor

Update:

If I move MemoryFreeThread() & MemoryCheck() to sheap.cpp (where a heap variable is explicitly declared), then heap.cpp compiles successfully.


void MemoryFreeThread()
{
	heap.Shutdown();
}

void MemoryCheck()
{
	heap.Check();
}



But the other file, heaputil.cpp still gives the error, since a heap variable is used in both MemoryProfile() and DoPeakProfile(), and I can't move them to sheap.cpp, since the first is a class constructor and the other contain a local variable.

It seems that the variable "heap" is not "visible" from the both files. Any suggestions?

Regards.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem using TcpSockets
Next Topic: SSL handshake error
Goto Forum:
  


Current Time: Fri Jun 12 03:02:41 GMT+2 2026

Total time taken to generate the page: 0.00547 seconds