开发者

What is the name of CImg's library?

I'm tryi开发者_StackOverflow中文版ng to find the Cimg library so that I can add it to libraries I have in Dev-c++, but there's no folder in Cimg named lib, so what's it called? Thanks.


Follow the CImg tutorial, which describes how to use it. Also check out their FAQ:

2.2 How to use CImg in my own C++ program ?

Basically, you need to add these two lines in your C++ source code, in order to be able to work with CImg images :

#include "CImg.h"
using namespace cimg_library;

CImg is a header-only library so you build it with your source, no external libraries to link.


This question is old now, you may have found a solution. But in case someone else needs help, here is my contribution:

I think you'r trying to read jpeg files with Cimg. Jpeg support is not built in Cimg, you'll need an additional lib (libjpeg or imageMagick).

In case of libjpeg you'll have to add #define cimg_use_jpeg before including CImg.h and you'll need libjpeg.lib This page may help you : Compile LibJPEG


Assuming you're talking about this, it appears to be header-only.

Just #include "CImg.h" and you're good to go, no (extra) library files needed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜