Skip to main content
Participant
December 23, 2016
Question

Linker command failed with exit code 1

  • December 23, 2016
  • 3 replies
  • 58137 views

I am working on Xcode 8.2.1 @, to build a indesign plugin .

Can anyone suggest which library i need to link , for below SnapshotUtilsEx.

I am calling SnapshotUtilsEX::Draw() method in HTTPHelper.cpp file.

Below is the linker error trace which i get , when I try to build my project.

Undefined symbols for architecture x86_64:

"SnapshotUtilsEx::Draw(int, unsigned int, PMReal const&, unsigned int, SnapshotUtils::Transparencies, IdleTimer*, std::__1::map<IDType<ClassID_tag>, PMReal, std::__1::less<IDType<ClassID_tag> >, std::__1::allocator<std::__1::pair<IDType<ClassID_tag> const, PMReal> > >*, unsigned int)", referenced from:

      HTTPHelper::ExportLayout(IDocument*, PMString, PMString) in HTTPHelper.o

Below is the code snippet where i am making a call to the method.

SnapshotUtilsEx snapshot(pageUIDRef, 1.0, 1.0, desiredRes, 16.0, bleedAmount, SnapshotUtilsEx::kCsRGB, kFalse);

     int errorCode = snapshot.Draw(IShape::kNoFlags, quality == SnapshotUtils::kSSJPEGGreatQuality && desiredRes > 16.0 ? kTrue : kFalse, 1.0, desiredRes > 16.0 ? kTrue : kFalse, desiredRes > 16.0 ? SnapshotUtils::kXPHigh : SnapshotUtils::kXPLow);

This topic has been closed for replies.

3 replies

Participant
December 26, 2016

Some additional info.

I am also using cpprestsdk (casablanca), within my plugin.

When I try to build my plugin by selecting libc++ as C++ standard library in Apple LLVM Language C++, build fails.

So please consider this scenario as well.

Community Expert
December 24, 2016

You are using wrong version of Xcode to build your plugins. Look the SDK documentation to identify the version of Xcode to use for different versions of InDesign. For ex: InDesign CC2014 and CC2015 plugins require Xcode 5.0.2. and InDesign CC2017 requires Xcode 7.2.1

-Manan

-Manan
Participant
December 26, 2016

Hi manan,

Thanks for the Info.

But looks like that the older version 5.0.2 of Xcode is not supported on latest macOS Sierra(10.12.2).

Is there some way we can build plugin for CC2015 server using the latest Xcode version 8.2.1 (8C1002)?

I remember to have used VS2015 with the previous version toolkits for Windows platform but not sure if we can do similar thing for Mac using Xcode.

Any suggestions?

gayatrir71495218
Participant
December 23, 2016

I also face the same issue with XCode. Please help.