10-28-2018, 11:00 AM
I'm helping a colleague get started with CORE, or at least promoting the idea by porting a simple existing plugin for him.
In Xcode, when I run the method with either of the following lines, it crashes with the message "Thread 1: EXC_BAD_ACCESS (code=1, address=0x18)"
When I add IText.cpp to the project and build I get 88 undefined symbol errors such as "_sApplicationPaint"
Of course I included and acquired suites using a prefix header and added the c++ flag HDI_CORE_DONT_DECLARE_AI_TYPES, e.g.
I'm sure revising the code to use CORE classes instead would be beneficial, but I'm hoping there's a straightforward way to salvage code that I know worked well in an SDK project. Any suggestions would be much appreciated.
In Xcode, when I run the method with either of the following lines, it crashes with the message "Thread 1: EXC_BAD_ACCESS (code=1, address=0x18)"
Code:
ATE::ITextRanges iTextRanges;
ATE::IVersionInfo info;
When I add IText.cpp to the project and build I get 88 undefined symbol errors such as "_sApplicationPaint"
Of course I included and acquired suites using a prefix header and added the c++ flag HDI_CORE_DONT_DECLARE_AI_TYPES, e.g.
Code:
extern "C" AITextFrameSuite* sAITextFrame;
extern "C" AIATEPaintSuite* sAIATEPaint;
I'm sure revising the code to use CORE classes instead would be beneficial, but I'm hoping there's a straightforward way to salvage code that I know worked well in an SDK project. Any suggestions would be much appreciated.