Skip to main content
Inspiring
June 16, 2009
Answered

Mac CS4 Linker Error with IAIColorSpace.cpp

  • June 16, 2009
  • 1 reply
  • 1000 views

Hi Folks,

I'm trying to use AIColorSpace in my Mac AICS4 Plug-In using Xcode 3.1.1 on Leopard 10.5.7, but I'm getting a linker errors (see below).

Has anyone here included "IAIColorSpace.cpp" in their project and successfully compile an AICS4 plug-in using Xcode 3.1.1 on Leopard?

When I include IAIColorSpace.cpp in my project, I get a linker error of:

_sAIColorSpace, referenced from

_sAIColorSpace$non_lazy_ptr in IAIColorSpace.o

symbol(s) not found

collect2: Id returned 1 exit status

There are many Google hits of "non_lazy_ptr" errors with Xcode, but nothing has helped me solve this issue. Any help would be most appreciated!

Thanks!

-- Jim

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

The usual culprit is that sAIColorSpace needs to be defined in all the right places. Typically its EXTERN'd in both a header & a cpp, as well as included in a list of suites to load (along with the version of the suite to load). Have you added it to all three places? Usually you just find the spots where all the other suties are and cut & paste it into their number. Where that would be depends on whether you're using your own plugin setup or if you're working off one of the Adobe skeleton samples plugins.

1 reply

A. Patterson
A. PattersonCorrect answer
Inspiring
June 16, 2009

The usual culprit is that sAIColorSpace needs to be defined in all the right places. Typically its EXTERN'd in both a header & a cpp, as well as included in a list of suites to load (along with the version of the suite to load). Have you added it to all three places? Usually you just find the spots where all the other suties are and cut & paste it into their number. Where that would be depends on whether you're using your own plugin setup or if you're working off one of the Adobe skeleton samples plugins.

Inspiring
June 16, 2009

Thank you very, very, much! You saved me before I pulled out all of my hair! ;-)

You were correct; I forgot to add the ColorSpaceSuite variable definitions to common.h and suites.h. Once I properly declared the suite and set up the suite variable "sAIColorSpace", the linker errors went away.

Cheers!

-- Jim