小编use*_*627的帖子

mingw-w64 中的编译器错误:“未定义对 __getreent 的引用。”

我目前正在尝试在 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 中进行编译。

c++ libjpeg mingw-w64

3
推荐指数
1
解决办法
2913
查看次数

标签 统计

c++ ×1

libjpeg ×1

mingw-w64 ×1