I extracted irrlicht 1.8 to C:\irrlicht-1.8
I created a new project in C:\repos\test\test.vcxproj
It is an empty console project
I went to Project > Properties > Configuration Properties > VC++ Directories
and added C:\irrlicht-1.8\include to Include Directories
and C:\irrlicht-1.8\lib\Win64-visualStudio to Library Directories
I created a single file (main.cpp) and added it to the project.
The contents of the file:
Code: Select all
#include <irrlicht.h>
using namespace irr;
using namespace video;
using namespace core;
void main()
{
IrrlichtDevice *device = createDevice(EDT_OPENGL, dimension2d<u32>(512, 384));
}
Code: Select all
1>main.obj : error LNK2019: unresolved external symbol __imp__createDevice referenced in function _main
Code: Select all
#ifdef _MSC_VER
#pragma comment(lib, "Irrlicht.lib")
#endif
#ifdef _IRR_WINDOWS_
#pragma comment(lib, "Irrlicht.lib")
#pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")
#endif
But anyway, they did not help.
So can anyone help me? What am I missing?
Regards!