home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Source Code Compiler

by Sauerplayer on 05/16/2007 20:59, 3 messages, last message: 05/17/2007 06:27, 1467 views, last view: 05/03/2024 22:39

Hey,
Just thought I'd drop a line here and ask what can compile the Sauerbraten source code. I'm using Code::Blocks v1.0 to edit the source and tried using the GNU GCC Compiler add-on to compile it, but I get crap like this for example:
-------------------------------
Compiling: C:\Documents and Settings\Ty\Desktop\los\src\engine\rendergl.cpp
C:/Documents and Settings/Ty/Desktop/los/src/engine/rendergl.cpp:3:17: pch.h: No such file or directory
In file included from C:/Documents and Settings/Ty/Desktop/los/src/engine/rendergl.cpp:4:
C:/Documents and Settings/Ty/Desktop/los/src/engine/engine.h:1:18: cube.h: No such file or directory
C:/Documents and Settings/Ty/Desktop/los/src/engine/engine.h:2:21: iengine.h: No such file or directory
C:/Documents and Settings/Ty/Desktop/los/src/engine/engine.h:3:19: igame.h: No such file or directory
In file included from C:/Documents and Settings/Ty/Desktop/los/src/engine/engine.h:5,
from C:/Documents and Settings/Ty/Desktop/los/src/engine/rendergl.cpp:4:
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:23: 'uchar' is used
as a type, but is not defined as a type.
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:24: parse error
before `[' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:25: 'uchar' is used
as a type, but is not defined as a type.
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:26: parse error
before `,' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:27: 'uchar' is used
as a type, but is not defined as a type.
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:28: parse error
before `[' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:60: parse error
before `{' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:62: parse error
before `short'
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:63: parse error
before `int'
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:64: parse error
before `const'
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h: In function `void
mask(int)':
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:66: `x' undeclared
(first use this function)
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:66: (Each
undeclared identifier is reported only once for each function it appears
in.)
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:66: `y' undeclared
(first use this function)
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:66: `z' undeclared
(first use this function)
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h: At global scope:
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:68: parse error
before `)' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:69: parse error
before `,' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:69: syntax error
before `.' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:69: syntax error
before `.' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:69: syntax error
before `.' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:70: parse error
before `&' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:72: parse error
before `)' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:73: parse error
before `,' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:73: syntax error
before `.' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:73: syntax error
before `.' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:73: syntax error
before `.' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:74: parse error
before `&' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:77: base class `
vvec' has incomplete type
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:78: parse error
before `{' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:79: 'bvec' is used
as a type, but is not defined as a type.
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:80: base class `
fvertexff' has incomplete type
C:/Documents and Settings/Ty/Desktop/los/src/engine/world.h:80: 'bvec' is used
as a type, but is not defined as a type.
In file included from C:/Documents and Settings/Ty/Desktop/los/src/engine/engine.h:6,
from C:/Documents and Settings/Ty/Desktop/los/src/engine/rendergl.cpp:4:
C:/Documents and Settings/Ty/Desktop/los/src/engine/octa.h:5: parse error
before `,' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/octa.h:6: parse error
before `[' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/octa.h:18: 'ivec' is used
as a type, but is not defined as a type.
C:/Documents and Settings/Ty/Desktop/los/src/engine/octa.h:19: parse error
before `,' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/octa.h:25: parse error
before `,' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/octa.h:28: syntax error
before `*' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/octa.h:29: 'ushort' is used
as a type, but is not defined as a type.
C:/Documents and Settings/Ty/Desktop/los/src/engine/octa.h:30: 'uchar' is used
as a type, but is not defined as a type.
C:/Documents and Settings/Ty/Desktop/los/src/engine/octa.h:36: parse error
before `[' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/octa.h:37: parse error
before `,' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/octa.h:38: parse error
before `,' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/octa.h:43: parse error
before `[' token
C:/Documents and Settings/Ty/Desktop/los/src/engine/octa.h:48: field `v' has
incomplete type
C:/Documents and Settings/Ty/Desktop/los/src/engine/octa.h:50: 'ushort' is used
as a type, but is not defined as a type.
C:/Documents and Settings/Ty/Desktop/los/src/engine/octa.h:64: parse error
Process terminated with status 1 (0 minutes, 5 seconds)
52 errors, 0 warnings
--------------------------------------
This leads me to think that Code::Blocks
and GNU GCC Compiler are not the best
Sauerbraten code compilers, since I even tried to recompile the unmodified source and still got errors. Get back to me here if you have an answer.
-Sauerplayer

   Board Index   

#1: ..

by absinth on 05/16/2007 21:50

since GCC is the standard compiler on linux and mac os x it is very well "supported" by sauerbraten.

it seems you have made some mistakes constructing a Code::Blocks project for sauerbraten...especially you should try to fix these:

pch.h: No such file or directory
cube.h: No such file or directory
iengine.h: No such file or directory
igame.h: No such file or directory


did you forget to add these files or their directory to the project?

reply to this message

#2: Re: ..

by Sauerplayer on 05/16/2007 22:26, refers to #1

Most likely, LOL,
I keep forgetting what all needs to be done to compile source code.

reply to this message

#3: Re: ..

by Quin on 05/17/2007 06:27, refers to #2

If you're using Code::Blocks v1.0RC1 (which is easiest with the bundled mingw) you can use the codeblocks projects in CVS.

You can grab it from here, and put it in your 'src/mingw/' directory: http://sauerbraten.cvs.sourceforge.net/*checkout*/sauerbraten/sauerbraten/src/mingw/sauerbraten.cbp

reply to this message

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53864808 visitors requested 71639954 pages
page created in 0.014 seconds using 10 queries
hosted by Boost Digital