Skip to main content
daitranthanhoa
Inspiring
December 16, 2019
Answered

Why Illustrator SDK 20 occur error 'nil': undeclared identifier ?

  • December 16, 2019
  • 1 reply
  • 616 views

This code working in CC 2019, But CC 2020 it not support:

 

extern "C"
{
AIFilterSuite* sAIFilter = nil;
SPBlocksSuite* sSPBlocks = nil;
AIArtSuite* sAIArt = nil;
AIPathSuite* sAIPath = nil;
AIRealMathSuite* sAIMath = nil;
AIRandomSuite* sAIRandom = nil;
AIDocumentViewSuite* sAIDocumentView = nil;

 

It occur error:

Error C2065 'nil': undeclared identifier 

 

Why Illustrator SDK 20 occur error 'nil': undeclared identifier ?

This topic has been closed for replies.
Correct answer Test Screen Name

I do not use Illustrator SDK, but I observe that "nil" is not standard C or C++. It is however, found in Objective C, where it is more or less usable in place of NULL. Try NULL.

1 reply

Test Screen NameCorrect answer
Legend
December 16, 2019

I do not use Illustrator SDK, but I observe that "nil" is not standard C or C++. It is however, found in Objective C, where it is more or less usable in place of NULL. Try NULL.

Leo_Q
Inspiring
December 18, 2019

If you want to stick to more modern C++ standards you can use nullptr, which is typesafe and cannot be mixed with integral types 🙂