私はVJoy仮想ジョイスティックを使い始めようとしていますが、問題が発生しています。私はそれが以下のコードを使用して実行している取得しようとしていますCodeblocks:ライブラリを含む
main.cpp|14| undefined reference to `_imp__vJoyEnabled'
:
が、私はこのエラーを得続けます。
#include <iostream>
#include <windows.h>
#include <stdlib.h>
#include "public.h"
#include "vjoyinterface.h"
using namespace std;
int main()
{
// Get the driver attributes (Vendor ID, Product ID, Version Number)
if (!vJoyEnabled())
{
cout << "Function vJoyEnabled Failed - make sure that vJoy is installed and enabled\n" << endl;
}
cout << "Hello world!" << endl;
return 0;
}
私はC++ 11でコンパイルするようにコンパイラを設定しました。 また、Codeblocks内でライブラリをリンクしています(プロジェクトビルドオプション - >リンカ設定 - >ライブラリの追加) 検索ディレクトリで再生しようとしましたが、動作させることができません。
アイデアは何ですか?