Jump to content

C++ Migrating Component System 2.15 to 2.16


photo

Recommended Posts

Posted

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");
}

 

Posted

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.

×
×
  • Create New...