Skip to main content
Known Participant
May 23, 2023
Answered

Undefined symbol: _sAICountedObject

  • May 23, 2023
  • 1 reply
  • 535 views

hi all,

getting  "Undefined symbol: _sAICountedObject" error 

kindly please help out this

thank you

 

This topic has been closed for replies.
Correct answer A. Patterson

If you're basing your code of the sample code, you can see that in samplecode\common\Suites.cpp it defines the actual suite pointers like so:

 

extern "C" {
	SPAccessSuite *sSPAccess;
	SPPluginsSuite *sSPPlugins;
	AINotifierSuite *sAINotifier;
	AIAppContextSuite *sAIAppContext;
	AIUserSuite *sAIUser;
	AIFilePathSuite *sAIFilePath;
	AIFoldersSuite *sAIFolders;
}

 

If you're following the pattern from the sample code, the suite in the header is just a forward declaration of the suite pointer, you need to actually define the actual suite pointer like above.

1 reply

A. Patterson
A. PattersonCorrect answer
Inspiring
May 23, 2023

If you're basing your code of the sample code, you can see that in samplecode\common\Suites.cpp it defines the actual suite pointers like so:

 

extern "C" {
	SPAccessSuite *sSPAccess;
	SPPluginsSuite *sSPPlugins;
	AINotifierSuite *sAINotifier;
	AIAppContextSuite *sAIAppContext;
	AIUserSuite *sAIUser;
	AIFilePathSuite *sAIFilePath;
	AIFoldersSuite *sAIFolders;
}

 

If you're following the pattern from the sample code, the suite in the header is just a forward declaration of the suite pointer, you need to actually define the actual suite pointer like above.

Mahesh12Author
Known Participant
May 25, 2023

thanks @A. Patterson