0

当我尝试在 Code::Blocks 中编译一些 C++ 代码时,出现以下错误:

 "_inflate", referenced from:
      InflateFile(__sFILE*, __sFILE*)in ZLibDecompressor.o
  "_inflateEnd", referenced from:
      InflateFile(__sFILE*, __sFILE*)in ZLibDecompressor.o
  "_inflateInit_", referenced from:
      InflateFile(__sFILE*, __sFILE*)in ZLibDecompressor.o
  "_sws_getContext", referenced from:
      RiffMovie::ParseFile(char const*)in RiffMovie.o
  "_sws_scale", referenced from:
      RiffMovie::PlaceRGBData()      in RiffMovie.o

我正在尝试在 Mac OS X 10.8 x64 上编译它。

4

1 回答 1

0

您需要通知链接器您要使用 OpenGL.framework。为此,请在选项中添加“-framework OpenGL”标志。

于 2012-12-02T02:09:00.567 回答