私の単純なプロジェクトでjrtplibとjthreadを使ってコンパイルしようとすると、リンクエラーの問題があります。エラーは以下のとおりです。jrtplibとjthreadに関するヘルプ
Error 4 fatal error LNK1120: 3 unresolved externals C:\Users\Chicko\Desktop\tryout\Debug\tryout.exe
Error 1 error LNK2019: unresolved external symbol "public: virtual __thiscall RTPSession::~RTPSession(void)" ([email protected]@[email protected]) referenced in function _wmain tryout.obj
Error 2 error LNK2019: unresolved external symbol "public: __thiscall RTPSessionParams::RTPSessionParams(void)" ([email protected]@[email protected]) referenced in function _wmain tryout.obj
Error 3 error LNK2019: unresolved external symbol "public: __thiscall RTPSession::RTPSession(class RTPRandom *,class RTPMemoryManager *)" ([email protected]@[email protected]@@[email protected]@@Z) referenced in function _wmain tryout.obj
、ここでは私のメインプログラムである:あなたの情報については
// tryout.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <rtpsession.h> //Confused to put "" or <>
#include <rtpsessionparams.h>
#include <rtpudpv4transmitter.h>
int _tmain(int argc, _TCHAR* argv[])
{
RTPSession session;
RTPSessionParams sessionparams;
RTPUDPv4TransmissionParams transparams;
sessionparams.SetOwnTimestampUnit(1.0/8000.0);
transparams.SetPortbase(8000);
return 0;
}
、私は自分のプロジェクトにこれらのライブラリから任意のヘッダファイルをインポートしないでください。私はプロジェクトの設定で追加のインクルードライブラリを使用し、`"..\jlib\jthread-1.2.1\src";"..\jlib\jrtplib3.8.2\src"
(これはすべてのヘッダが格納されているフォルダです)を入れます。これをどうやって解決するのですか? jrtplib.lib
とjthread.lib
はどこに置く必要がありますか?助けてください...
私はしましたが、何も修正されませんでした。私はこれをC:\ Users \ Chicko \ Desktop \ tryout \ jlib \ jrtplib-3.8.2 \ Debug \ jrtplib.lib " " C:\ Users \ Chicko \ Desktop \ tryout \ jlib \ jthread-1.2のように置いた。 1 \ Debug \ jthread.lib "と入力します。この形式は正しいですか? –
絶対パスは必要ありません。lib名だけです。そしてこれをリンカーの依存関係に入れますか? exeにリンクされているものを見るには、リンカのコマンドラインで/ verbose:libを指定します。これにより、出力ウィンドウにリンクされているすべてのものが表示されます。 – Ralf