简体   繁体   中英

Quartz : Undefined symbols when building for x86_64 architecture

I've create a console project and add Quartz.Framework, QuartzCore.Framework into my app.

But during linking it gives following errors

Undefined symbols for architecture x86_64:
  "_CGColorCreateGenericRGB", referenced from:
      GifFlippingBook::GifFlippingBookCreator::CreateGifFlippingBook(int, int, double, std::string, int, std::string, std::string, int, std::string, std::string, std::string) in main.o
  "_CGDataProviderCreateWithFilename", referenced from:
      GifFlippingBook::GifFlippingBookCreator::CreateGifFlippingBook(int, int, double, std::string, int, std::string, std::string, int, std::string, std::string, std::string) in main.o
  "_CGImageCreateWithPNGDataProvider", referenced from:
      GifFlippingBook::GifFlippingBookCreator::CreateGifFlippingBook(int, int, double, std::string, int, std::string, std::string, int, std::string, std::string, std::string) in main.o

Any ideas why ?

您还必须添加CoreGraphics框架。

Hah found the answer on my own

CoreGraphics framework is part of ApplicationServices.Framework so I just need to add it into linking libraries.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM