PreProcessor Errors: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 6: Line 6:
:Add quotation marks in the title, or the file path. (#include "soGood.sqf")
:Add quotation marks in the title, or the file path. (#include "soGood.sqf")


--[[User:LMapper512|LMapper512]] ([[User talk:LMapper512|talk]]) 21:51, 28 May 2014 (CEST)
--[[User:LMapper512|LMapper512]] ([[User talk:LMapper512|talk]]) 21:52, 28 May 2014 (CEST)
==Error 6==
==Error 6==
Problem:
Problem:

Revision as of 21:52, 28 May 2014

Error 2

Problem:

Preprocessor failed error 2.

How to fix:

Add quotation marks in the title, or the file path. (#include "soGood.sqf")

--LMapper512 (talk) 21:52, 28 May 2014 (CEST)

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.