我已经创建了一个控制台项目,并将Quartz.Framework,QuartzCore.Framework添加到我的应用程序中。
但在链接期间会出现以下错误
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
任何想法为什么?
答案 0 :(得分:0)
您还必须添加CoreGraphics框架。
答案 1 :(得分:0)
Hah在我自己找到了答案
CoreGraphics框架是ApplicationServices.Framework的一部分,所以我只需要将它添加到链接库中。