Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

error LNK2001: unresolved external symbol _sApplicationPaint

New Here ,
May 05, 2009 May 05, 2009

Hi,

Im creating plug-in for illustrator cs3 sdk using visula studio 2005. I need to get text frame art type. For using this, i added IText.cpp and IThrowException.cpp. I got 79 errors related to IText.cpp.

The error is like

error LNK2001: unresolved external symbol _sApplicationPaint

error LNK2001: unresolved external symbol _sCompFont

error LNK2001: unresolved external symbol _sCompFontClass
1>IText.obj : error LNK2001: unresolved external symbol _sCompFontClassSet

How to solve this

TOPICS
SDK
1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Enthusiast ,
May 06, 2009 May 06, 2009

Just take a look at your project properties.

Be sure to set correctly the additional Include directories.

Thomas.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
May 07, 2009 May 07, 2009

The includes sound okay; what it sounds like is he's missing whatever .c/.cpp actually declares the variables. Its been a while since I worked with the SDK's skeleton plugin, so I can't remember which file that is -- suites.cpp maybe? Whatever file it is, it just needs to be added to the project.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 09, 2015 Jul 09, 2015
LATEST

Although I'm too late, thought it will help someone in need. To resolve the external symbols, follow the steps specified under the heading Adding text support to your plug-in (in page 10 and 11) in the following document:

http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/illustrator/sdk/CC/using-adobe-text-engine.pd...

Adding text support to your plug-in

For your plug-in to use the Adobe text engine API, it must compile the Adobe text engine wrapper classes

and acquire the necessary suites for these classes during start-up.

In Visual C++, follow these steps to add the required source code:

1.     Add <SDK>/illustratorapi/ate/IText.cpp to the list of project source files.

2.     Right-click IText.cpp in the Solution Explorer and choose Properties.

3.     Under C/C++ > Precompiled Headers, set Create/Use Precompiled Header to Not Using Precompiled Headers.

4.     Repeat with <SDK>/illustratorapi/ate/IThrowException.cpp

In the source code, follow these steps:

1.     Add the following include instruction to the file that contains the definition of the suite pointers.

(See <SDK>/samplecode/MarkedObjects/Source/MarkedObjectsSuites.h)

#include "ATETextSuitesImportHelper.h"

2.     Add EXTERN_TEXT_SUITES to the list of external suite pointers.

(See <SDK>/samplecode/MarkedObjects/Source/MarkedObjectsSuites.cpp)

3.     Add IMPORT_TEXT_SUITES to the list of suites and suite versions to be imported.

(See <SDK>/samplecode/MarkedObjects/Source/MarkedObjectsSuites.cpp)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines