User forums > Help

Compilation error with SuSE Linux 9.3 on AMD64

<< < (4/6) > >>

MortenMacFly:

--- Quote from: mandrav on May 03, 2006, 11:57:54 am ---Yes, I know. I 'm the one trying to port AS to 64bit ;)

--- End quote ---
You have your hands everywhere... don't you?! :shock: :lol:


--- Quote from: mandrav on May 03, 2006, 11:57:54 am ---What I see is:

--- Code: ---#define _LP64 1

--- End code ---

--- End quote ---
Ok, found. There is another one:

--- Code: ---#define __LP64__ 1

--- End code ---
just below this:

--- Code: ---#define __PTRDIFF_TYPE__ long int

--- End code ---
Anyway: So this is OK. Still remaining: Why is the assertion raised if have that define set? And why is it on my system only?

By the way: I tried to integrate AS 2.6.0 by now. But I get a lot of compiler erros, allthough I set #define AS_64BIT_PTR in as_config.h:

--- Code: --- g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/sdk -I/home/ftmh/tmp/opt/wx/2.6/lib/wx/include/gtk2-unicode-release-2.6 -I/home/ftmh/tmp/opt/wx/2.6/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK_
_ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -I../../../src/sdk/wxscintilla/include -I../../../src/sdk/tinyxml -I../../../src/sdk -I../../../src/sdk/as/include -I/home/ftmh/
tmp/opt/wx/2.6/lib/wx/include/gtk2-unicode-release-2.6 -I/home/ftmh/tmp/opt/wx/2.6/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1
 -O2 -ffast-math -g -O2 -I/home/ftmh/tmp/opt/wx/2.6/lib/wx/include/gtk2-unicode-release-2.6 -I/home/ftmh/tmp/opt/wx/2.6/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64
 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -MT as_anyobject.lo -MD -MP -MF .deps/as_anyobject.Tpo -c ./source/as_anyobject.cpp  -fPIC -DPIC -o .libs/as_anyobject.o
In file included from source/as_gcobject.h:45,
                 from source/as_anyobject.h:45,
                 from source/as_anyobject.cpp:36:
source/as_array.h:110: error: prototype for `asUINT asCArray<T>::GetLength()
   const' does not match any in class `asCArray<T>'
source/as_array.h:53: error: candidate is: size_t asCArray<T>::GetLength()
   const
source/as_array.h:110: error: template definition of non-template `asUINT
   asCArray<T>::GetLength() const'
source/as_array.h:116: error: prototype for `const T&
   asCArray<T>::operator[](unsigned int) const' does not match any in class `
   asCArray<T>'
source/as_array.h:59: error: candidates are: T& asCArray<T>::operator[](long
   unsigned int)
source/as_array.h:58: error:                 const T&
   asCArray<T>::operator[](long unsigned int) const
source/as_array.h:116: error: template definition of non-template `const T&
   asCArray<T>::operator[](unsigned int) const'
source/as_array.h:124: error: prototype for `T&
   asCArray<T>::operator[](unsigned int)' does not match any in class `
   asCArray<T>'
source/as_array.h:116: error: candidates are: const T&
   asCArray<T>::operator[](unsigned int) const
source/as_array.h:59: error:                 T& asCArray<T>::operator[](long
   unsigned int)
source/as_array.h:58: error:                 const T&
   asCArray<T>::operator[](long unsigned int) const
source/as_array.h:124: error: template definition of non-template `T&
   asCArray<T>::operator[](unsigned int)'
source/as_array.h:149: error: prototype for `void
   asCArray<T>::Allocate(unsigned int, bool)' does not match any in class `
   asCArray<T>'
source/as_array.h:46: error: candidate is: void asCArray<T>::Allocate(long
   unsigned int, bool)
source/as_array.h:149: error: template definition of non-template `void
   asCArray<T>::Allocate(unsigned int, bool)'
source/as_array.h:174: error: prototype for `asUINT asCArray<T>::GetCapacity()
   const' does not match any in class `asCArray<T>'
source/as_array.h:47: error: candidate is: size_t asCArray<T>::GetCapacity()
   const
source/as_array.h:174: error: template definition of non-template `asUINT
   asCArray<T>::GetCapacity() const'
source/as_array.h:180: error: prototype for `void
   asCArray<T>::SetLength(unsigned int)' does not match any in class `
   asCArray<T>'
source/as_array.h:52: error: candidate is: void asCArray<T>::SetLength(long
   unsigned int)
source/as_array.h:180: error: template definition of non-template `void
   asCArray<T>::SetLength(unsigned int)'
source/as_array.h:189: error: prototype for `void asCArray<T>::Copy(const T*,
   unsigned int)' does not match any in class `asCArray<T>'
source/as_array.h:55: error: candidate is: void asCArray<T>::Copy(const T*,
   long unsigned int)
source/as_array.h:189: error: template definition of non-template `void
   asCArray<T>::Copy(const T*, unsigned int)'
make[4]: *** [as_anyobject.lo] Error 1
make[4]: Leaving directory `/home/ftmh/projects/codeblocks/src/sdk/as'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ftmh/projects/codeblocks/src/sdk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ftmh/projects/codeblocks/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ftmh/projects/codeblocks/src'
make: *** [all-recursive] Error 1

--- End code ---
I guess due to my limited knowledge it's maybe the best I give up with AMD64 and try Ubuntu 5.10 (32) now. Hopefully this is going to be easier... at least more productive. ;-)
With regards, Morten.

Edit: Changed angelscript.h to as_config.h.

Michael:

--- Quote from: MortenMacFly on May 03, 2006, 02:01:47 pm ---[...]and try Ubuntu 5.10 (32) now. Hopefully this is going to be easier... at least more productive. ;-)

--- End quote ---

Hello,

Yes, I think you will have no problem on Ubuntu 5.10 (32). All works fine so far :).

Happy try :).

Best wishes,
Michael

mandrav:

--- Quote ---By the way: I tried to integrate AS 2.6.0 by now. But I get a lot of compiler erros
--- End quote ---

I 've fixed these errors but I haven't submitted this patch yet.

MortenMacFly:

--- Quote from: mandrav on May 03, 2006, 02:22:20 pm ---I 've fixed these errors but I haven't submitted this patch yet.

--- End quote ---
...well... why doesn't this make me wonder? You are unbelievable. :shock: I feel small now. ;-)

...but serioulsy: If you (or others?) don't have any other suggestions/ideas I think I'm not going to investigate in that any further. It would just have been cool to have C::B running on that server. That's because the software I'm developing is used primary on Windows and secondary on that server where I still have to use Makefiles for development which simply sucks. Anyway: Running any linux system remotely for testing which can run C::B is helpful, too. That would be the case with Ubuntu...

I'm going to monitor AS development in addition - if a new version is out I'm going to try again. And if you need "beta-testers" for AS feel free to set me on the list - as you can see I've access to evil 64bit systems... ;-)

With regards, Morten.

MortenMacFly:
...just one last addition:
The assertion stated RegisterAnyObject which is also called in the constructor asCScriptEngine::asCScriptEngine(). So am I right that even if we commented out the things in scriptbindings.cpp that as soon as a script engine object is constructed the assertion has to be raised anyway? (I'm still trying to understand when and why the assertion is raised...).
With regards, Morten.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version