且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Visual Studio 2010,PortAudio DLL 编译和链接问题,C++

更新时间:2023-02-12 14:29:03

编译器无法找到 portaudio.h 头文件.根据最后一个屏幕截图,在 Additional Include Directories 中,您需要指向 文件所在的目录,而不是二进制文件(.lib, .dll) 是..lib 文件的路径需要明确指定(如上一个屏幕截图的旁边,不仅仅是 portaudio.lib 而是完整路径)或设置VC++ 目录 属性页,这也是设置包含目录的首选位置.

The compiler fails to find the portaudio.h header file. As per the last screenshot, in Additional Include Directories, you need to point to the directory where the <portaudio.h> file is, not where the binaries (.lib, .dll) are. The path to the .lib file needs to either be specified explicitly (as in the next to the last screenshot, not just portaudio.lib but the full path) or set in the VC++ Directories property page, which is also the preferred place to set your include directories.