trandana Posted October 10, 2022 Posted October 10, 2022 I can't seem to compile any component for 2.16 anymore. I'm guessing the API changed, but not sure what its looking for. Error below: error LNK2019: unresolved external symbol Unigine::ComponentVariableArgumentTitle::ComponentVariableArgumentTitle(char const *) cpp file: #pragma once #include <UnigineComponentSystem.h> #include <UnigineGame.h> #include <UnigineInput.h> #include <Unigine.h> class InputManager : public Unigine::ComponentBase { public: COMPONENT_DEFINE(InputManager, ComponentBase); COMPONENT_INIT(Init); COMPONENT_UPDATE(Update); COMPONENT_SHUTDOWN(Shutdown); protected: void Init(); void Update(); void Shutdown(); }; header file: #include "InputManager.h" REGISTER_COMPONENT(InputManager); void InputManager::Init() { } void InputManager::Update() { } void InputManager::Shutdown() { Unigine::Log::message("Input Manager Destroyed\n"); }
trandana Posted October 11, 2022 Author Posted October 11, 2022 So it seems to be an issue with migrating projects. I created a brand new project in 2.16 with identical code and it worked fine.
silent Posted October 11, 2022 Posted October 11, 2022 It's hard to tell what can cause this behavior, maybe a full rebuild would fix that (instead of incremental) since new .lib files are copied on top with 2.16 update. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Recommended Posts