目前,我正面临着在Windows中编译cImg和libjpeg的(噩梦)任务。许多小时后,我终于能够构建libjpeg,并将它包含在构建过程中(cImg需要libjpeg来使用jpegs)。
当我尝试用'g++ image.cpp libjpeg.a -lgdi32‘编译时,我得到以下错误:
'jerror.c:112: undefined reference to `__getreent. The system cannot find the path specified.'我在谷歌上看过,但似乎没有多少人有同样的问题(还有更少的人有答案)。
我正在使用mingw-w64在windows中编译。
发布于 2018-01-05 22:48:06
我已经解决了这个问题。对于任何有同样问题的人:
'set MSYS2_PATH_TYPE=inherit'中删除'rem'https://stackoverflow.com/questions/48102092
复制相似问题