0
CImg 라이브러리를 사용하려고하는데 작동하지 않습니다. 나는 터미널에서 Mac에서 일하고 있는데 hello world 프로그램을 작성했습니다.CImg이 함수를 찾지 못합니다. draw_text
#include "CImg.h"
using namespace cimg_library;
int main() {
const unsigned char purple[] = { 255,0,255 };
CImg<unsigned char>(640,400,1,3,0).draw_text("Hello World",100,100,purple).di\
splay("My first CImg code");
return 0;
}
라이브러리의 "draw_text"기능을 필요로합니다. 내가 헤더를 포함
g++ -o hello_word.exe hello_world.cpp -O2 -L/usr/X11R6/lib -lm -lpthread -lX11 -I/opt/X11/include
처럼 컴파일 내가 오류는 다음과 같습니다
error: no matching function for call to ‘cimg_library::CImg<unsigned char>::draw_text(const char [12], int, int, const unsigned char [3])’
어떤 아이디어가? 고맙습니다! 기능 CImg<T>::draw_text()
의 서명에 대한 참조 문서에서