我在使用 JRTPLIB c++ win32 版本时遇到了一些问题,在 Visual Studio2010 中编译。(http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jrtplib)。我已经给作者发了邮件,但还没有收到回复。我遇到的问题是这样的:
error C1083: Cannot open include file: 'rtpconfig_unix.h': No such file or directory c:\users\johan-bar\desktop\developer tools\3rd party software\jrtplib-3.8.1\src\rtpconfig.h
我拥有的两个 .h 文件是:
主.h:
enter code here
#include <WinSock2.h>
#include <Windows.h>
#include <WindowsX.h>
#include <stdlib.h>
#include <string>
#include <Richedit.h>
#include "jrtlibtest.h"
#include "resource.h"
jrtlibtest.h:
#include "rtpsession.h"
所以我认为我需要在 jrtlibtest.h 中 #include windows.h 才能识别要定义的 WIN32(因此它不包括 unix .h 文件),但这反过来又给了我大约 100 个重新定义错误。
我不确定如何解决这个问题,我在图书馆主页本身或互联网上都找不到任何信息。有没有其他人遇到过这个问题?
干杯