Warning 'WolframLibraryData' differs in levels of indirection from 'int'

Hello,

When doing code generation according to the instruction from the help resource CCodeGenerator/tutorial/CodeGeneration#407970428 I get the following error message:

xxx.c(7) : warning C4047: ‘initializing’ : ‘WolframLibraryData’ differs in levels of indirection from ‘int’

for the following line of code:

WolframLibraryData libData = WolframLibraryData_new(WolframLibraryVersion);

which is basically the exact code that is proposed in the tutorial for CCode Generation.

Any Idea why this happens and how to solve this?

Kind Regards,
Mathias Breuss

1 Like