📜  Cimg 无法识别文件格式 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:30.234000             🧑  作者: Mango

代码示例1
Heres what you have to do... 
This works for pngs and jpegs so far...

Go to the Cimg.h source file and paste this wherever:
#define cimg_use_png

When your compiling include lib-png 
This is a working compiler command. 
 g++ -O3 -o try main.cpp -lm -lpthread -lX11 -lpng