I don't need to test my programs. I have an error-correcting modem.

Difference between revisions of "Compiler errors overview"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m (UE3)
m (UE3)
Line 2: Line 2:
 
{{expand}}
 
{{expand}}
 
===Errors===
 
===Errors===
;Error, Not allowed to use 'config' with object variables :
+
;Error, Not allowed to use '[[Variable#Modifiers_affecting_values|config]]' with object variables :
 
;Error, Failed to find DependsOn class 'interface name' while parsing 'class name' : the [[Classes|Implements]] modifier in the class declaration contains an incorrect interface name value.
 
;Error, Failed to find DependsOn class 'interface name' while parsing 'class name' : the [[Classes|Implements]] modifier in the class declaration contains an incorrect interface name value.
 
;Error, Could not load existing package file 'package path' :
 
;Error, Could not load existing package file 'package path' :
 
;Error, Type mismatch in Call to 'function name', parameter ''number'' :
 
;Error, Type mismatch in Call to 'function name', parameter ''number'' :
 
;Error, Bad or missing expression in Call to 'function name', parameter ''number'' :
 
;Error, Bad or missing expression in Call to 'function name', parameter ''number'' :
;Error, Bad or missing expression for token<nowiki>:</nowiki> '''function''', in 'Return' :
+
;Error, Bad or missing expression for token<nowiki>:</nowiki> ''[[function]]'', in '[[Return]]' :
;Error, Bad or missing expression for token<nowiki>:</nowiki> '''variable''', in 'If' : to note in this case the variable was an actor reference.
+
;Error, Bad or missing expression for token<nowiki>:</nowiki> ''[[variable]]'', in '[[If]]' : to note in this case the variable was an actor reference.
;Error, Bad or missing expression after '+'<nowiki>:</nowiki> 'variable name' <nowiki>:</nowiki> + being an incorrect operator usage?
+
;Error, Bad or missing expression after '+'<nowiki>:</nowiki> 'variable name' : + being an incorrect operator usage?
 
;Error, 'Ignores'<nowiki>:</nowiki> 'ExecuteWhatToDoNext' is not a function
 
;Error, 'Ignores'<nowiki>:</nowiki> 'ExecuteWhatToDoNext' is not a function
 
;Error, '[[type]]' conversion<nowiki>:</nowiki> Bad or missing expression
 
;Error, '[[type]]' conversion<nowiki>:</nowiki> Bad or missing expression
;Error, ImportText ('''struct''')<nowiki>:</nowiki> Missing closing parenthesis<nowiki>:</nowiki>(''member1''='value',''member2='value'))
+
;Error, ImportText (''[[struct]]'')<nowiki>:</nowiki> Missing closing parenthesis<nowiki>:</nowiki>(''member1''='value',''member2='value'))
 
;Error, Type mismatch in '='
 
;Error, Type mismatch in '='
 
;Error, Can't call instance functions from within static functions : [[Static Function|Static functions]] can only call other static functions.
 
;Error, Can't call instance functions from within static functions : [[Static Function|Static functions]] can only call other static functions.
Line 21: Line 21:
 
;Warning, 'variable name' <nowiki>:</nowiki> unreferenced local variable : a variable is declared within a function and never assigned a value.
 
;Warning, 'variable name' <nowiki>:</nowiki> unreferenced local variable : a variable is declared within a function and never assigned a value.
 
;Warning, Unresolved reference to Class 'class name'
 
;Warning, Unresolved reference to Class 'class name'
;Warning, '''function'''<nowiki>:</nowiki> Missing return value : a function with a return type has no 'return'.
+
;Warning, ''[[function]]''<nowiki>:</nowiki> Missing return value : a function with a return type has no 'return'.
 
;Warning, ObjectProperty Engine.MeshComponent<nowiki>:</nowiki>Materials.Materials<nowiki>:</nowiki> unresolved reference to 'object'package.group.object''
 
;Warning, ObjectProperty Engine.MeshComponent<nowiki>:</nowiki>Materials.Materials<nowiki>:</nowiki> unresolved reference to 'object'package.group.object''
 
;Warning, Invalid property value in defaults<nowiki>:</nowiki> ''property''=''value'' : a property in the defaults is not a defined variable.
 
;Warning, Invalid property value in defaults<nowiki>:</nowiki> ''property''=''value'' : a property in the defaults is not a defined variable.

Revision as of 05:08, 24 April 2010

UE3

Errors

Error, Not allowed to use 'config' with object variables 
Error, Failed to find DependsOn class 'interface name' while parsing 'class name' 
the Implements modifier in the class declaration contains an incorrect interface name value.
Error, Could not load existing package file 'package path' 
Error, Type mismatch in Call to 'function name', parameter number 
Error, Bad or missing expression in Call to 'function name', parameter number 
Error, Bad or missing expression for token: function, in 'Return
Error, Bad or missing expression for token: variable, in 'If
to note in this case the variable was an actor reference.
Error, Bad or missing expression after '+': 'variable name' 
+ being an incorrect operator usage?
Error, 'Ignores': 'ExecuteWhatToDoNext' is not a function
Error, 'type' conversion: Bad or missing expression
Error, ImportText (struct): Missing closing parenthesis:(member1='value',member2='value'))
Error, Type mismatch in '='
Error, Can't call instance functions from within static functions 
Static functions can only call other static functions.
Error, You can only access default values of variables here 
tried to assign a non default variable a value, using a non default variable in a statement, assigning a variable a value from another that isnt a default variable. There are instances where you can access non default variables in Static functions, if the variable is part of the function definition, a local variable.

Warnings

Warning, 'variable name' : local variable used before assigned a value 
a variable is referenced before it is assigned a value, which means it'll return the default value for that type, whether that is what you are looking for or not. This could be conditionally incorrect, the compiler doesnt check to see in which order things are carried out so it could infact be wrong, hence only a warning.
Warning, 'variable name' : unreferenced local variable 
a variable is declared within a function and never assigned a value.
Warning, Unresolved reference to Class 'class name'
Warning, function: Missing return value 
a function with a return type has no 'return'.
Warning, ObjectProperty Engine.MeshComponent:Materials.Materials: unresolved reference to 'object'package.group.object
Warning, Invalid property value in defaults: property=value 
a property in the defaults is not a defined variable.
Warning, Using a non-qualified name (would have) found: object package.group.group.name
Warning, Unable to parse parameter value in defaultproperties array operation: array<struct>.add((member1='value',member2='value'))
Warning, Unresolved reference to object
Warning, friendly operator name_TypeNameTypeName: Missing return value 
This is similar to function not having a return value but is the operator version, UScript supports operator overloading so the 'friendly operator name will be a reference to a table within the engine $ being Concat as an example.

Failure

Failed to load 'object package.group.name': Failed to find object 'object package.group.name'