Monday, 24 July 2017

c++ - How to link a library for Eclipse

I am trying to use the CImg.h library in Eclipse.



I have tried to use MinGW C++ Linker -- Library Search Path -- and set it to "C:\CImg\CImg-1.7.5".



However, my line #include gives me a fatal error "CImg.h no such file or directory".




I get this error message in the Console:




Info: Internal Builder is used for build g++ -O0 -g3 -Wall -c
-fmessage-length=0 -o "src\TileMap.o" "..\src\TileMap.cpp" ..\src\TileMap.cpp:74:18: fatal error: CImg.h: No such file or
directory #include
^ compilation terminated.


No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...