Hi Dirk,

Am So, 9.11.2008, 23:24, schrieb Dirk Reiners:
>
>     Hi Yvonne,
>
> Yvonne Jung wrote:
>> Hi list,
>>
>> these days I wanted to try out OpenSG 2, and had some issues when compiling
>> with gcc 4.3.1 (running on SuSE 11.0). Thus, attached you find a patch with
>> the fixes.
>>
> Yeah, I ran into that, too... :(
>> -  typedef dense_hashtable<V,K,HF,ExK,EqK,A>                dense_hashtable;
>> +  //typedef dense_hashtable<V,K,HF,ExK,EqK,A>
>> dense_hashtable;
>>    typedef dense_hashtable_iterator<V,K,HF,ExK,EqK,A>       iterator;
>>    typedef dense_hashtable_const_iterator<V,K,HF,ExK,EqK,A> const_iterator;
>>
>> @@ -137,7 +137,7 @@
>>    typedef V* pointer;
>>
>>    // "Real" constructor and default constructor
>> -  dense_hashtable_iterator(const dense_hashtable *h,
>> +  dense_hashtable_iterator(const dense_hashtable<V,K,HF,ExK,EqK,A> *h,
>>
> Those changes should be fine, I don't see a reason not to do them.

Yes, I also double checked it with the newer version from the Google SVN, and
they did about the same.

>> -#include <ext/hash_fun.h>
>> +#include <hash_fun.h>
>>
> Hm, I'm fairly certain that will break compilation on older systems. My
> 4.1.1 only has ext/hash_fun.h. So we're going to need something that's
> more backwards compatible...

Yes, perhaps the windows solution for all platforms.
Because also for 4.3.1. this header is not as expected located in /usr/include
but somewhere in the C++ backward compatibility section, which BTW results in
a lot of backward warnings...

>> +#include <climits>
>>
> Is that available on the usual compilers? I can't find it (again, 4.1.1).

I also checked Visual Studio 2008, where it is available, too. But
    #include <limits.h>
certainly should do the job...

Bye
Yvonne



---
Yvonne Jung
Fraunhofer-IGD    | Tel.: ++49-6151-155-290
Fraunhoferstr. 5  | Fax.: ++49-6151-155-196
64283 Darmstadt   | email: [EMAIL PROTECTED]
Germany           | http://www.igd.fhg.de/igd-a4


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to