Spintz - need your help!

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Athlon_Jedi
Posts: 156
Joined: Wed Jul 21, 2004 4:29 am
Location: Mishawaka, In

Spintz - need your help!

Post by Athlon_Jedi »

ok so i downloaded your modified code and when i try to compile it with 64 bit support i get a few syntax errors!

line 84,114 and one more i cant think of off the top of my head.

something about "missing ";" before ")"

i have not changed any of your code or added anything to the source at all.

could this be due to trying to port it to 64 bit or are there any errors you had to fix to get it to compile?

im using visual studio .net 2003 with the AMD 64 platform sdk

thanx
BlackNinjaGames
Posts: 31
Joined: Mon Sep 05, 2005 4:47 pm
Contact:

Post by BlackNinjaGames »

I seriously doubt that's from 64-bit. Perhaps there is in fact a missing semicolin. Or maybe there is an undefined something and its freaking out.
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

Apparently, the bug is in Irrlicht-0.12 as well.

I assume you're replacing the WIN32 definition to WIN64.

The problem when doing that is in COpenGLDriver.h, it's checking -

Code: Select all

#ifdef WIN32
You need to add an include for IrrCompileConfig.h and the change the previous line at the top of the file to

Code: Select all

#ifdef _IRR_WINDOWS_
At least, that's the only problem I had.
Image
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

Apparently, the bug is in Irrlicht-0.12 as well.

I assume you're replacing the WIN32 definition to WIN64.

The problem when doing that is in COpenGLDriver.h, it's checking -

Code: Select all

#ifdef WIN32
You need to add an include for IrrCompileConfig.h and the change the previous line at the top of the file to

Code: Select all

#ifdef _IRR_WINDOWS_
At least, that's the only problem I had.
Image
Athlon_Jedi
Posts: 156
Joined: Wed Jul 21, 2004 4:29 am
Location: Mishawaka, In

Post by Athlon_Jedi »

so in COpenGlDriver.h

i would do:

#include <IrrCompileConfig.h>

and then change the definition to:

#ifdef __IRR_WINDOWS_ <------may not be exact but i get the gest lol
Athlon_Jedi
Posts: 156
Joined: Wed Jul 21, 2004 4:29 am
Location: Mishawaka, In

Post by Athlon_Jedi »

MAN!!! i still cant get it to compile..... :cry: :cry: :cry:

dont suppose you can send me a copy of the dll compiled with 64 bit support as i dont have the time to sit here and try and track down the
problem, it throws syntax errors in all sorts of header files and its all the stupid missing this befor this....

here is a partial post of the output:

Code: Select all


c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\IUnknown.h(114) : warning C4091: '' : ignored on left of 'int' when no variable is declared
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\IUnknown.h(114) : error C2143: syntax error : missing ';' before 'constant'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\IUnknown.h(114) : error C2143: syntax error : missing ';' before '}'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\IUnknown.h(114) : warning C4091: '' : ignored on left of 'int' when no variable is declared
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\IUnknown.h(114) : error C2143: syntax error : missing ';' before 'constant'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\IUnknown.h(114) : error C2143: syntax error : missing ';' before '}'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(226) : error C2556: 'const irr::video::S3DVertex2TCoords &irr::core::array<T>::operator [](irr::u32)' : overloaded function differs only by return type from 'irr::video::S3DVertex2TCoords &irr::core::array<T>::operator [](irr::u32)'
        with
        [
            T=irr::video::S3DVertex2TCoords
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(215) : see declaration of 'irr::core::array<T>::operator`[]''
        with
        [
            T=irr::video::S3DVertex2TCoords
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\SMeshBufferLightMap.h(110) : see reference to class template instantiation 'irr::core::array<T>' being compiled
        with
        [
            T=irr::video::S3DVertex2TCoords
        ]
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(226) : error C2373: 'irr::core::array<T>::operator`[]'' : redefinition; different type modifiers
        with
        [
            T=irr::video::S3DVertex2TCoords
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(215) : see declaration of 'irr::core::array<T>::operator`[]''
        with
        [
            T=irr::video::S3DVertex2TCoords
        ]
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(227) : error C2059: syntax error : 'if'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(227) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(229) : error C2059: syntax error : 'return'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(229) : error C2238: unexpected token(s) preceding ';'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(233) : error C2143: syntax error : missing ';' before 'const'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(226) : error C2556: 'const irr::u32 &irr::core::array<T>::operator [](irr::u32)' : overloaded function differs only by return type from 'irr::u32 &irr::core::array<T>::operator [](irr::u32)'
        with
        [
            T=irr::u32
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(215) : see declaration of 'irr::core::array<T>::operator`[]''
        with
        [
            T=irr::u32
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\SMeshBufferLightMap.h(111) : see reference to class template instantiation 'irr::core::array<T>' being compiled
        with
        [
            T=irr::u32
        ]
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(226) : error C2373: 'irr::core::array<T>::operator`[]'' : redefinition; different type modifiers
        with
        [
            T=irr::u32
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(215) : see declaration of 'irr::core::array<T>::operator`[]''
        with
        [
            T=irr::u32
        ]
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(227) : error C2059: syntax error : 'if'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(227) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(229) : error C2059: syntax error : 'return'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(229) : error C2238: unexpected token(s) preceding ';'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(233) : error C2143: syntax error : missing ';' before 'const'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(226) : error C2556: 'irr::scene::IMesh &irr::core::array<T>::operator [](irr::u32)' : overloaded function differs only by return type from 'irr::scene::IMesh &irr::core::array<T>::operator [](irr::u32)'
        with
        [
            T=irr::scene::IMesh *
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(215) : see declaration of 'irr::core::array<T>::operator`[]''
        with
        [
            T=irr::scene::IMesh *
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\SAnimatedMesh.h(101) : see reference to class template instantiation 'irr::core::array<T>' being compiled
        with
        [
            T=irr::scene::IMesh *
        ]
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(226) : error C2373: 'irr::core::array<T>::operator`[]'' : redefinition; different type modifiers
        with
        [
            T=irr::scene::IMesh *
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(215) : see declaration of 'irr::core::array<T>::operator`[]''
        with
        [
            T=irr::scene::IMesh *
        ]
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(227) : error C2059: syntax error : 'if'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(227) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(229) : error C2059: syntax error : 'return'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(229) : error C2238: unexpected token(s) preceding ';'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(233) : error C2143: syntax error : missing ';' before 'const'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(226) : error C2556: 'irr::scene::IMeshBuffer &irr::core::array<T>::operator [](irr::u32)' : overloaded function differs only by return type from 'irr::scene::IMeshBuffer &irr::core::array<T>::operator [](irr::u32)'
        with
        [
            T=irr::scene::IMeshBuffer *
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(215) : see declaration of 'irr::core::array<T>::operator`[]''
        with
        [
            T=irr::scene::IMeshBuffer *
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\SMesh.h(89) : see reference to class template instantiation 'irr::core::array<T>' being compiled
        with
        [
            T=irr::scene::IMeshBuffer *
        ]
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(226) : error C2373: 'irr::core::array<T>::operator`[]'' : redefinition; different type modifiers
        with
        [
            T=irr::scene::IMeshBuffer *
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(215) : see declaration of 'irr::core::array<T>::operator`[]''
        with
        [
            T=irr::scene::IMeshBuffer *
        ]
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(227) : error C2059: syntax error : 'if'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(227) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(229) : error C2059: syntax error : 'return'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(229) : error C2238: unexpected token(s) preceding ';'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(233) : error C2143: syntax error : missing ';' before 'const'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(226) : error C2556: 'const irr::video::S3DVertex &irr::core::array<T>::operator [](irr::u32)' : overloaded function differs only by return type from 'irr::video::S3DVertex &irr::core::array<T>::operator [](irr::u32)'
        with
        [
            T=irr::video::S3DVertex
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(215) : see declaration of 'irr::core::array<T>::operator`[]''
        with
        [
            T=irr::video::S3DVertex
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\SMeshBuffer.h(109) : see reference to class template instantiation 'irr::core::array<T>' being compiled
        with
        [
            T=irr::video::S3DVertex
        ]
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(226) : error C2373: 'irr::core::array<T>::operator`[]'' : redefinition; different type modifiers
        with
        [
            T=irr::video::S3DVertex
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(215) : see declaration of 'irr::core::array<T>::operator`[]''
        with
        [
            T=irr::video::S3DVertex
        ]
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(227) : error C2059: syntax error : 'if'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(227) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(229) : error C2059: syntax error : 'return'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(229) : error C2238: unexpected token(s) preceding ';'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(233) : error C2143: syntax error : missing ';' before 'const'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(226) : error C2556: 'const irr::video::S3DVertexTangents &irr::core::array<T>::operator [](irr::u32)' : overloaded function differs only by return type from 'irr::video::S3DVertexTangents &irr::core::array<T>::operator [](irr::u32)'
        with
        [
            T=irr::video::S3DVertexTangents
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(215) : see declaration of 'irr::core::array<T>::operator`[]''
        with
        [
            T=irr::video::S3DVertexTangents
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\SMeshBufferTangents.h(109) : see reference to class template instantiation 'irr::core::array<T>' being compiled
        with
        [
            T=irr::video::S3DVertexTangents
        ]
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(226) : error C2373: 'irr::core::array<T>::operator`[]'' : redefinition; different type modifiers
        with
        [
            T=irr::video::S3DVertexTangents
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(215) : see declaration of 'irr::core::array<T>::operatCStringParameters.cpp
or`[]''
        with
        [
            T=irr::video::S3DVertexTangents
        ]
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(227) : error C2059: syntax error : 'if'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(227) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(229) : error C2059: syntax error : 'return'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(229) : error C2238: unexpected token(s) preceding ';'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(233) : error C2143: syntax error : missing ';' before 'const'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\IUnknown.h(114) : warning C4091: '' : ignored on left of 'int' when no variable is declared
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\IUnknown.h(114) : error C2143: syntax error : missing ';' before 'constant'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\IUnknown.h(114) : error C2143: syntax error : missing ';' before '}'
include\irrArray.h(226) : error C2556: 'const irr::CStringParameters::SStringPair &irr::core::array<T>::operator [](irr::u32)' : overloaded function differs only by return type from 'irr::CStringParameters::SStringPair &irr::core::array<T>::operator [](irr::u32)'
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
        include\irrArray.h(215) : see declaration of 'irr::core::array<T>::operator`[]''
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\CStringParameters.h(81) : see reference to class template instantiation 'irr::core::array<T>' being compiled
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
include\irrArray.h(226) : error C2373: 'irr::core::array<T>::operator`[]'' : redefinition; different type modifiers
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
        include\irrArray.h(215) : see declaration of 'irr::core::array<T>::operator`[]''
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
include\irrArray.h(227) : error C2059: syntax error : 'if'
include\irrArray.h(227) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
include\irrArray.h(229) : error C2059: syntax error : 'return'
include\irrArray.h(229) : error C2238: unexpected token(s) preceding ';'
include\irrArray.h(233) : error C2143: syntax error : missing ';' before 'const'
CStringParameters.cpp(17) : error C2039: 'size' : is not a member of 'irr::core::array<T>'
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
CStringParameters.cpp(18) : error C2264: 'irr::core::array<T>::operator`[]'' : error in function definition or declaration; function not called
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
CStringParameters.cpp(18) : error C2088: '[' : illegal for class
CStringParameters.cpp(18) : error C2228: left of '.Name' must have class/struct/union type
CStringParameters.cpp(21) : error C2039: 'erase' : is not a member of 'irr::core::array<T>'
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
CStringParameters.cpp(23) : error C2264: 'irr::core::array<T>::operator`[]'' : error in function definition or declaration; function not called
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
CStringParameters.cpp(23) : error C2088: '[' : illegal for class
CStringParameters.cpp(23) : error C2228: left of '.Value' must have class/struct/union type
CStringParameters.cpp(30) : error C2039: 'getLast' : is not a member of 'irr::core::array<T>'
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
CStringParameters.cpp(30) : error C2228: left of '.Name' must have class/struct/union type
CStringParameters.cpp(31) : error C2039: 'getLast' : is not a member of 'irr::core::array<T>'
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
CStringParameters.cpp(31) : error C2228: left of '.Value' must have class/struct/union type
CStringParameters.cpp(41) : error C2039: 'size' : is not a member of 'irr::core::array<T>'
        with
        [
            T=irr::CStriCOSOperator.cpp
ngParameters::SStringPair
        ]
CStringParameters.cpp(42) : error C2264: 'irr::core::array<T>::operator`[]'' : error in function definition or declaration; function not called
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
CStringParameters.cpp(42) : error C2088: '[' : illegal for class
CStringParameters.cpp(42) : error C2228: left of '.Name' must have class/struct/union type
CStringParameters.cpp(43) : error C2264: 'irr::core::array<T>::operator`[]'' : error in function definition or declaration; function not called
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
CStringParameters.cpp(43) : error C2088: '[' : illegal for class
CStringParameters.cpp(43) : error C2228: left of '.Value' must have class/struct/union type
CStringParameters.cpp(43) : error C2228: left of '.c_str' must have class/struct/union type
CStringParameters.cpp(50) : error C2039: 'size' : is not a member of 'irr::core::array<T>'
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
CStringParameters.cpp(51) : error C2264: 'irr::core::array<T>::operator`[]'' : error in function definition or declaration; function not called
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
CStringParameters.cpp(51) : error C2088: '[' : illegal for class
CStringParameters.cpp(51) : error C2228: left of '.Name' must have class/struct/union type
CStringParameters.cpp(52) : error C2264: 'irr::core::array<T>::operator`[]'' : error in function definition or declaration; function not called
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
CStringParameters.cpp(52) : error C2088: '[' : illegal for class
CStringParameters.cpp(121) : error C2039: 'size' : is not a member of 'irr::core::array<T>'
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
CStringParameters.cpp(128) : error C2039: 'size' : is not a member of 'irr::core::array<T>'
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
CStringParameters.cpp(131) : error C2264: 'irr::core::array<T>::operator`[]'' : error in function definition or declaration; function not called
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
CStringParameters.cpp(131) : error C2088: '[' : illegal for class
CStringParameters.cpp(131) : error C2228: left of '.Name' must have class/struct/union type
CStringParameters.cpp(131) : error C2228: left of '.c_str' must have class/struct/union type
CStringParameters.cpp(138) : error C2039: 'size' : is not a member of 'irr::core::array<T>'
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
CStringParameters.cpp(141) : error C2264: 'irr::core::array<T>::operator`[]'' : error in function definition or declaration; function not called
        with
        [
            T=irr::CStringParameters::SStringPair
        ]
CStringParameters.cpp(141) : error C2088: '[' : illegal for class
CStringParameters.cpp(141) : error C2228: left of '.Value' must have class/struct/union type
CStringParameters.cpp(141) : error C2228: left of '.c_str' must have class/struct/union type
CLogger.cpp
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\IUnknown.h(114) : warning C4091: '' : ignored on left of 'int' when no variable is declared
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\IUnknown.h(114) : error C2143: syntax error : missing ';' before 'constant'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\IUnknown.h(114) : error C2143: syntax error : missing ';' before '}'
CIrrDeviceWin32.cpp
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\IUnknown.h(114) : warning C4091: '' : ignored on left of 'int' when no variable is declared
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\IUnknown.h(114) : error C2143: syntax error : missing ';' before 'constant'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\IUnknown.h(114) : error C2143: syntax error : missing ';' before '}'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\IUnknown.h(114) : warning C4091: '' : ignored on left of 'int' when no variable is declared
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\IUnknown.h(114) : error C2143: syntax error : missing ';' before 'constant'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\IUnknown.h(114) : error C2143: syntax error : missing ';' before '}'
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(226) : error C2556: 'const irr::video::S3DVertex2TCoords &irr::core::array<T>::operator [](irr::u32)' : overloaded function differs only by return type from 'irr::video::S3DVertex2TCoords &irr::core::array<T>::operator [](irr::u32)'
        with
        [
            T=irr::video::S3DVertex2TCoords
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(215) : see declaration of 'irr::core::array<T>::operator`[]''
        with
        [
            T=irr::video::S3DVertex2TCoords
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\SMeshBufferLightMap.h(110) : see reference to class template instantiation 'irr::core::array<T>' being compiled
        with
        [
            T=irr::video::S3DVertex2TCoords
        ]
c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(226) : error C2373: 'irr::core::array<T>::operator`[]'' : redefinition; different type modifiers
        with
        [
            T=irr::video::S3DVertex2TCoords
        ]
        c:\Documents and Settings\Administrator\Desktop\Shared Stuff\GAME PROGRAMMING\irrlicht-spintz-0.12_source\irrlicht-spintz-0.12\source\Irrlicht\include\irrArray.h(215) : see declaration of 'irr::core::array<T>::operator`[]''
        with       ....................
and it goeson and on and on and on.

seems as if its haveing anurisims over every header file in the source lol

unless you would like me to putt the entire output in a test file so you could have a look but it would be huge lol
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

For some reason,

_IRR_DEBUG_BREAK_IF

is not being defined for you in IrrCompileConfig, however, it always should be defined as something. Make sure these lines exist in irrTypes.h

Code: Select all

//! define a break macro for debugging only in Win32 mode.
#if defined(WIN32) && defined(_MSC_VER) && defined(_DEBUG)
#define _IRR_DEBUG_BREAK_IF( _CONDITION_ ) if (_CONDITION_) {_asm int 3}
#else 
#define _IRR_DEBUG_BREAK_IF( _CONDITION_ )
#endif

//! Defines a small statement to work around a microsoft compiler bug.
/** The microsft compiler 7.0 - 7.1 has a bug:
When you call unmanaged code that returns a bool type value of false from managed code, 
the return value may appear as true. See 
http://support.microsoft.com/default.aspx?kbid=823071 for details. 
Compiler version defines: VC6.0 : 1200, VC7.0 : 1300, VC7.1 : 1310, VC8.0 : 1400*/
#if defined(WIN32) && defined(_MSC_VER) && (_MSC_VER > 1299) && (_MSC_VER < 1400)
#define _IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX __asm mov eax,100
#else
#define _IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX
#endif // _IRR_MANAGED_MARSHALLING_BUGFIX
If you didn't modify that file, they should be there. It works fine for me.
Image
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

Was looking at that code, and irrTypes.h should also include IrrCompileConfig.h and should change those lines so instead of

Code: Select all

#if defined(WIN32) && ....
to

Code: Select all

#if defined(_IRR_WINDOWS_) && ....
If all this still doesn't work for you, then yes, I can make available a 64 bit compiled version, as I run Win XPx64
Image
Athlon_Jedi
Posts: 156
Joined: Wed Jul 21, 2004 4:29 am
Location: Mishawaka, In

Post by Athlon_Jedi »

thank ill take a look and see, if i still cant get it werkin ill let ya know and thanks for the 64 bit dll as well lol


also in irrtypes.h should i uncomment the line that deals with the s64 variable?
Athlon_Jedi
Posts: 156
Joined: Wed Jul 21, 2004 4:29 am
Location: Mishawaka, In

Post by Athlon_Jedi »

still no dice lol maybe my machine is cursed lol
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

1 more fix, in COpenGLDriver.cpp, the extGlProgramStringARB function change WIN32 to _IRR_WINDOWS_.

Since you can't get it to compile,

http://irrlicht.spintz.com/downloads/Ir ... Spintz.dll

is the 64 bit compiled DLL in Release Mode.
Image
Athlon_Jedi
Posts: 156
Joined: Wed Jul 21, 2004 4:29 am
Location: Mishawaka, In

Post by Athlon_Jedi »

SWEET thanx man i owe ya
Athlon_Jedi
Posts: 156
Joined: Wed Jul 21, 2004 4:29 am
Location: Mishawaka, In

Post by Athlon_Jedi »

ummm now when useing the 64 bit version its complaining about not finding dx3d9.dll_26 or some such!

any idea how to fix this lol? i have the directx sdk and update but the dll in the redist is dx3d9.dll_24 or something like that not to mention i havnt figured out how to install the 64bit directx dll lol
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

You know, when I linked that, I didn't link to x64 DirectX, but still to x86 DirectX, recompiling now....
Image
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

Also, I'm compiling with DX June 2005 edition.

I tried linking to x64 DirectX, and I'm having trouble with the D3DXCompileShader function, will let you know when I know more.
Image
Post Reply