gpt4 book ai didi

c++ - CImg 的库名称是什么?

转载 作者:太空宇宙 更新时间:2023-11-04 15:53:09 28 4
gpt4 key购买 nike

我试图找到 Cimg 库,以便我可以将它添加到我在 Dev-c++ 中的库中,但是 Cimg 中没有名为 lib 的文件夹,所以它叫什么?谢谢。

最佳答案

Follow the CImg tutorial ,其中描述了如何使用它。另请查看 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 是一个 header-only library所以你用你的源构建它,没有外部库链接。

关于c++ - CImg 的库名称是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4565470/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com