2011-05-12 59 views
0

我用OPAL庫在我的應用程序(VISUAL C++ 2008 Express的),我建ptlib和蛋白石,一個sopied ptlibs.lib和opals.lib到我的項目的lib文件夾的靜態版本。我還將ptlib和opal的include directiores複製到我的應用程序文件夾中。我將lib文件添加到鏈接器配置中,並將dir包含到項目配置中。爲什麼我的OPAL應用程序不能鏈接?

它編譯但doesn'tlink。爲什麼?這是OPAL中的一個錯誤嗎?

------構建開始:項目:infomat,配置:調試的Win32 ------ 編譯... MyOpalManager.cpp 鏈接... 搜索庫 搜索d:\ PRJ \ voip \ ptlib \ Lib \ ptlibs.lib: 正在搜索d:\ prj \ voip \ opal \ lib \ opals.lib: 正在搜索C:\ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ lib \ kernel32.lib : 正在搜索C:\ Program Files \ Microsoft SDK \ Windows \ v6.0A \ lib \ user32.lib: 正在搜索C:\ Program Files \ Microsoft SDK \ Windows \ v6.0A \ lib \ gdi32.lib: 正在搜索C :\ Program Files文件\微軟的SDK \的Windows \ v6.0A \ LIB \ winspool.lib: 搜索C:\ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ lib \ comdlg32.lib: 正在搜索C:\ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ lib \ advapi32.lib: 正在搜索C:\ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ lib \ shell32.lib: 搜索C:\ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ lib \ ole32.lib: 正在搜索C:\ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ lib \ oleaut32.lib: 正在搜索C:\ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ lib \ uuid.lib: 正在搜索C: v6.0A \ lib \ odbc32.lib: 正在搜索C:\ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ lib \ odbccp32.lib: 正在搜索C:\ Program Files \ Microsoft Visual Studio 9.0 \ VC \ lib \ msvcprtd.lib: 搜索C:\ Program Files文件\微軟的Visual Studio 9.0 \ VC \ LIB \ MSVCRTD.LIB: 搜索C:\ Program Files文件\微軟的Visual Studio 9.0 \ VC \ LIB \ OLDNAMES.lib: 搜索C:\ Program Files文件\微軟的Visual Studio 9.0 \ VC \ LIB \ msvcprt。 lib: 正在搜索C:\ Program Files \ Microsoft Visual Studio 9.0 \ VC \ lib \ MSVCRT.lib: 正在搜索C:\ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ lib \ quartz.lib: 正在搜索C: \ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ lib \ strmiids.lib: 正在搜索C:\ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ lib \ vfw32.lib: 正在搜索C:\ Program Files \微軟的SDK \的Windows \ v6.0A \ LIB \ WINMM.LIB: 搜索C:\ Program Files文件\微軟的SDK \的Windows \ v6.0A \ LIB \ mpr.lib: 搜索C:\ Program Files文件\微軟的SDK \的Windows \ v6.0A \ LIB \ WS2_32.LIB: 正在搜索C:\ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ lib \ iphlpapi.lib: 正在搜索C:\ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ lib \ dnsapi.lib:

完成搜索庫 LINK:警告LNK4098:defaultlib「MSVCRT」與其他使用林達衝突;使用 /NODEFAULTLIB:庫

MyOpalManager.obj:錯誤LNK2019:無法解析的外部符號 「市民:靜態無效* __cdecl PMemoryHeap ::分配(無符號整數,字符常量*,整型,字符常量*)」(分配? @ PMemoryHeap @@ SAPAXIPBDH0 @ Z)的函數引用 「市民:靜態無效* __cdecl H323EndPoint ::運營商新的(無符號整數)」(?? 2H323EndPoint @@ SAPAXI @ Z) MyOpalManager.obj:錯誤LNK2019:無法解析的外部符號「市民:靜態無效__cdecl PMemoryHeap ::解除分配(void *的,字符常量*)」函數引用(?解除分配@ PMemoryHeap @@ SAXPAXPBD @ Z) 「市民:靜態無效__cdecl H323EndPoint :: delete操作符(無效*)」(? ?3H323EndPoint @@ SAXPAX @ Z) MyOpalPCSSEndPoint.obj:error LNK2001:無法解析的外部符號「public:static void __cdecl PMemoryHeap :: Deallocate(void *,char const *)」(?Deallocate @ PMemoryHeap @@ SAXPAXPBD @ Z) d :\ prj \ voip \ infomat \ Debug \ infomat.exe:致命錯誤LNK1120:2個未解析的外部程序 生成日誌保存在「file:// d:\ prj \ voip \ infomat \ infomat \ Debug \ BuildLog.htm」 infomat - 4個錯誤,1個警告 ==========構建:0成功,1失敗,0最新,0跳過======== ==

回答

0

爲什麼不用ptlib或opal在相同的解決方案中創建項目?它是有道理的,那麼配置不是必需的。

相關問題