PreProcessor Errors: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Formatting)
Line 1: Line 1:
==Error 2==
==Error 2==
Problem:
;Problem: Preprocessor failed error 2.
:Preprocessor failed error 2.


How to fix:
;How to fix: Add quotation marks in the title, or the file path. (''e.g.'' <tt>#include "soGood.sqf"</tt>).
:Add quotation marks in the title, or the file path. (#include "soGood.sqf")


--[[User:LMapper512|LMapper512]] ([[User talk:LMapper512|talk]]) 21:52, 28 May 2014 (CEST)
==Error 6==
==Error 6==
Problem:
;Problem: Preprocessor failed on file X - error 6.
:Preprocessor failed on file X - error 6.


Known reasons:
;Known reasons:
* "The problem is that I'm using #ifdef #ifdef #endif #endif. This doesn't work in ArmA. It's only possible to use #ifdef and #endif once and not nested."
* "The problem is that I'm using <tt>#ifdef #ifdef #endif #endif</tt>. This doesn't work in Arma. It's only possible to use <tt>#ifdef</tt> and <tt>#endif</tt> once and not nested."
 
* <tt>#endif</tt> without preceding <tt>#ifdef</tt> or <tt>ifndef</tt>
* #endif without preceding #ifdef or ifndef


==Error 7==
==Error 7==
Problem:
;Problem: Preprocessor failed on file X - error 7.
:Preprocessor failed on file X - error 7.


Known reasons:
;Known reasons: The preprocessor encountered an unknown directive. Read, you have probably a typo in the file (something like <tt>#inlcude</tt> or <tt>#defien</tt>). Double check all preprocessor directives in that file.
* The preprocessor encountered an unknown directive. Read, you have probably a typo in the file (something like ''#inlcude'' or ''#defien''). Double check all preprocessor directives in that file.


[[Category:Scripting_Topics]]
[[Category:Scripting_Topics]]

Revision as of 22:43, 28 May 2014

Error 2

Problem
Preprocessor failed error 2.
How to fix
Add quotation marks in the title, or the file path. (e.g. #include "soGood.sqf").

Error 6

Problem
Preprocessor failed on file X - error 6.
Known reasons
  • "The problem is that I'm using #ifdef #ifdef #endif #endif. This doesn't work in Arma. It's only possible to use #ifdef and #endif once and not nested."
  • #endif without preceding #ifdef or ifndef

Error 7

Problem
Preprocessor failed on file X - error 7.
Known reasons
The preprocessor encountered an unknown directive. Read, you have probably a typo in the file (something like #inlcude or #defien). Double check all preprocessor directives in that file.