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 » Developing U++ » U++ Developers corner » Current porting state?
Re: Current porting state? [message #5299 is a reply to message #5298] Wed, 13 September 2006 08:10 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
Quote:


I do not know if I am doing it the correct way, but I exported the Makefile for HelloWorld and set to.



HelloWorld is still too big. First thing that you should make working when porting is logging (LOG and DUMP).

Quote:


The flagUSEMALLOC, when enabled, created some undefined references MemoryDumpLeaks() in Core.h, which was easy to fix, but I took out USEMALLOC anyway.



Rather stay with malloc. If there is something highly platform sensitive, it is heap allocator implementation.

Quote:


Compiling HelloWorld failed due to:

StaticCriticalSection::Initialize



Error?

Quote:


(gdb) p s
$1 = (const RGBA *) 0x36340834
(gdb) p *s
Cannot access memory at address 0x36340834

Why is it that your RGBA's, which seem to be defined as "RGBA *" or, pointers to an RGBA, end up with the RGBA value "0x36340834" (which looks like a clean RGBA value to me) instead of a pointer to said value.

Almost like:
RGBA *rgba;
*rgba = value;
.. is interpreted as "*(rgba)=value;" instead of the correct
"(*rgba)=value;".



Actually, I believe that debugger and compiler are correct. Just somehow s contains invalid address.

 
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
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: SO for Draw, Esc and other packages
Next Topic: C strings
Goto Forum:
  


Current Time: Thu Aug 14 02:13:30 CEST 2025

Total time taken to generate the page: 0.07461 seconds