我目前正在尝试在 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.'
Run Code Online (Sandbox Code Playgroud)
我在谷歌上看过,但似乎没有多少人有同样的问题(而且有答案的人更少)。
我正在使用 mingw-w64 在 Windows 中进行编译。