使用LogitechSDK的LNK 2028无法解析的令牌 [英] LNK 2028 Unresolved token with LogitechSDK

查看:100
本文介绍了使用LogitechSDK的LNK 2028无法解析的令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!!!!
让我们看一下,我不是程序员,但我一直在尝试构建一个程序,以使用来自HOTAS(轻巧的模拟硬件)的某些led,现在我正试图将处理程序添加到此设备. br/> 问题是我不明白什么VC试图通过此错误告诉我:

Hi everyone!!!
Lets see, i''m not a programmer but i''d been trying to built a program to use some leds from a HOTAS (fligh sim hardware), right now i''m trying to get the handler to this device.
The problem is that i dont understand what VC try to tell me with this error:

error LNK2028: unresolved token (0A000344) "public: void __thiscall LogitechControllerInput::ControllerInput::Update(void)" (?Update@ControllerInput@LogitechControllerInput@@$$FQAEXXZ) referenced in function "int __cdecl main(void)" (?main@@$$HYAHXZ)



当然,这是用来获取设备处理程序的程序:



And of course this is the program that suppose to get the device handler:

// Test Led.cpp : main project file.

#include "stdafx.h"
#include <LogiJoystick.h>
#include <LogiControllerInput.h>

using namespace System;
using namespace LogitechControllerInput;

LogitechControllerInput::ControllerInput;
LPDIRECTINPUTDEVICE8 device_;
ControllerInput* g_controller;
;
int main()
{

        g_controller->Update();
        for (INT ii = 0; ii < LG_MAX_CONTROLLERS; ii++)
        {
                if (g_controller->IsConnected(ii))
                {
                        int u=0;
                }
                if (g_controller->IsConnected(ii,LG_MODEL_G940_THROTTLE))
                {
                        device_ = g_controller->GetDeviceHandle(ii);
                }
        
        }
        
}



因此,请欧比一个人是我最后的希望.



So please Obi One you are my last hope.

推荐答案

FQAEXXZ)在函数"int __cdecl main(void)"(?main @@
FQAEXXZ) referenced in function "int __cdecl main(void)" (?main@@


HYAHXZ)



当然,这是用来获取设备处理程序的程序:



And of course this is the program that suppose to get the device handler:

// Test Led.cpp : main project file.

#include "stdafx.h"
#include <LogiJoystick.h>
#include <LogiControllerInput.h>

using namespace System;
using namespace LogitechControllerInput;

LogitechControllerInput::ControllerInput;
LPDIRECTINPUTDEVICE8 device_;
ControllerInput* g_controller;
;
int main()
{

        g_controller->Update();
        for (INT ii = 0; ii < LG_MAX_CONTROLLERS; ii++)
        {
                if (g_controller->IsConnected(ii))
                {
                        int u=0;
                }
                if (g_controller->IsConnected(ii,LG_MODEL_G940_THROTTLE))
                {
                        device_ = g_controller->GetDeviceHandle(ii);
                }
        
        }
        
}



所以请Obi One,您是我最后的希望.



So please Obi One you are my last hope.


该消息告诉您无法找到在主程序之外定义的方法LogitechControllerInput::ControllerInput::Update().您需要修改项目以包括包含此方法的(Logitech)库.
The message is telling you that it cannot find the method LogitechControllerInput::ControllerInput::Update() which is defined somewhere outside of your main program. You need to modify your project to include the (Logitech) library that contains this method.


这篇关于使用LogitechSDK的LNK 2028无法解析的令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆