:o this is new....
by Jeff Raab · in Torque Game Engine · 09/12/2004 (11:38 am) · 8 replies
Alrighty,
im getting this:
../engine\platform\types.h(14) : error C2146: syntax error : missing ';' before identifier 'Engine'
../engine\platform\types.h(14) : error C2501: 'ame' : missing storage-class or type specifiers
../engine\platform\types.h(14) : error C2144: syntax error : 'signed char' should be preceded by ';'
../engine\platform\types.h(14) : error C2501: 'Engine' : missing storage-class or type specifiers
error after i went and added the Celestial patch.
it has a problem with this:
typedef signed char S8;
line.
no idea how this should be handled. got ideas?
im getting this:
../engine\platform\types.h(14) : error C2146: syntax error : missing ';' before identifier 'Engine'
../engine\platform\types.h(14) : error C2501: 'ame' : missing storage-class or type specifiers
../engine\platform\types.h(14) : error C2144: syntax error : 'signed char' should be preceded by ';'
../engine\platform\types.h(14) : error C2501: 'Engine' : missing storage-class or type specifiers
error after i went and added the Celestial patch.
it has a problem with this:
typedef signed char S8;
line.
no idea how this should be handled. got ideas?
#2
//-----------------------------------------------------------------------------
// Torque Game Engine
// Copyright (C) GarageGames.com, Inc.
//-----------------------------------------------------------------------------
#ifndef _TORQUE_TYPES_H_
#define _TORQUE_TYPES_H_
//------------------------------------------------------------------------------
//-------------------------------------- Basic Types...
typedef signed char S8; ///< Compiler independent Signed Char
typedef unsigned char U8; ///< Compiler independent Unsigned Char
thats the whole first part
im getting errors on the typedef signed char S8;
and the thing above it is a space.
this is in Types.h btw
09/12/2004 (12:20 pm)
Nope://-----------------------------------------------------------------------------
// Torque Game Engine
// Copyright (C) GarageGames.com, Inc.
//-----------------------------------------------------------------------------
#ifndef _TORQUE_TYPES_H_
#define _TORQUE_TYPES_H_
//------------------------------------------------------------------------------
//-------------------------------------- Basic Types...
typedef signed char S8; ///< Compiler independent Signed Char
typedef unsigned char U8; ///< Compiler independent Unsigned Char
thats the whole first part
im getting errors on the typedef signed char S8;
and the thing above it is a space.
this is in Types.h btw
#3
09/12/2004 (12:43 pm)
What file is compiling when the error comes up? My guess is that whatever file is being compiled (AKA the .cc code file) has an error in it before it includes types.h. That way when it gets to line 14 of your types.h it suddenly sees a bunch of code it wasn't expecting and then errors there. Just a thought. Your types.h looks 100% correct.
#4
yup it was TerrRender.cc
alrighty, thx for that.
another thing:
..\lib\out.VC6.RELEASE\ljpeg\jidctflt.obj : fatal error LNK1136: invalid or corrupt file
and:
Linking...
LINK : fatal error LNK1181: cannot open input file 'ljpeg.lib'
those are cropping up somewhere, but i can t find them.
i havent had those errors before so im not sure how to go about fixing them
09/12/2004 (12:51 pm)
:oyup it was TerrRender.cc
alrighty, thx for that.
another thing:
..\lib\out.VC6.RELEASE\ljpeg\jidctflt.obj : fatal error LNK1136: invalid or corrupt file
and:
Linking...
LINK : fatal error LNK1181: cannot open input file 'ljpeg.lib'
those are cropping up somewhere, but i can t find them.
i havent had those errors before so im not sure how to go about fixing them
#5
09/12/2004 (2:27 pm)
Might want to try a "clean" & "rebuild all" (Assuming your using Microsoft Visual Studio 6.0) Sounds like some of your files are out of date and Visual Studio doesn't know it.
#6
09/12/2004 (4:04 pm)
Im using VC++ 2005.
#7
Build -> Clean Torque Demo (or something close to that)
Then
Build -> Rebuild Torque Demo (or something close to that)
Seems your "jidctflt.obj" needs to specifically be rebuild. Being there is the object around, Microsoft C++ might think "hey this object isn't out of date" and not bother re-compiling it even though its bad. Then when it comes to use it for linking it fails because the file is in fact bad.
It takes a while to do a clean re-build but sometimes its the only way to get things in sync when Microsoft thinks everything is up to date.
Anyway, thats why I suggest doing that.
09/12/2004 (4:25 pm)
In that case try:Build -> Clean Torque Demo (or something close to that)
Then
Build -> Rebuild Torque Demo (or something close to that)
Seems your "jidctflt.obj" needs to specifically be rebuild. Being there is the object around, Microsoft C++ might think "hey this object isn't out of date" and not bother re-compiling it even though its bad. Then when it comes to use it for linking it fails because the file is in fact bad.
It takes a while to do a clean re-build but sometimes its the only way to get things in sync when Microsoft thinks everything is up to date.
Anyway, thats why I suggest doing that.
#8
thx every body, it compiles now, though there are 33 warnings :P
09/12/2004 (4:27 pm)
Yea, tried it right before you posted, and it worked like a charmthx every body, it compiles now, though there are 33 warnings :P
Torque Owner David Dougher
Pariah Games