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 » Community » U++ community news and announcements » Upp 701-dev1 released
Re: Upp 701-dev1 released [message #7651 is a reply to message #7595] Fri, 12 January 2007 22:07 Go to previous messageGo to previous message
MikeP is currently offline  MikeP
Messages: 4
Registered: January 2007
Junior Member
Werner wrote on Mon, 08 January 2007 23:41

Trying to build "Concrete01" or "ide", e. g., with gcc 4.1.1 yields:

Quote:

D:\ProgWin\upp\uppsrc\Core\heap.cpp:60: error: expected ',' or '...' before 'char'
D:\ProgWin\upp\uppsrc\Core\heap.cpp: In function 'void Upp::MemorySum(int&)':
D:\ProgWin\upp\uppsrc\Core\heap.cpp:62: error: expected unqualified-id before '=' token
D:\ProgWin\upp\uppsrc\Core\heap.cpp:63: error: 'large' was not declared in this scope
D:\ProgWin\upp\uppsrc\Core\heap.cpp: In function 'void* Upp::MemoryAlloc(size_t)':
D:\ProgWin\upp\uppsrc\Core\heap.cpp:589: error: '_msize' was not declared in this scope
D:\ProgWin\upp\uppsrc\Core\heap.cpp: In function 'void Upp::MemoryFree(void*)':
D:\ProgWin\upp\uppsrc\Core\heap.cpp:611: error: '_msize' was not declared in this scope




The same is true for gcc 3.4.2.

Werner



all this errors are from heap.cpp
change code on row 60 to:
void MemorySum(int& ismall, int& large)
{
	ismall = sSmallKb;
	large = (int) (sLarge >> 10);
}



the rest is by using _msize() function. This is MSC specific.
This must by avoided Smile by ex:
#ifndef COMPILER_GCC
#ifdef PLATFORM_WIN32 
	sLarge += _msize(q);
#endif
#endif
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Upp 2007.1beta released
Next Topic: Forum email trouble....
Goto Forum:
  


Current Time: Thu Apr 25 16:49:48 CEST 2024

Total time taken to generate the page: 0.02316 seconds