Unresolved external symbol _SetConsoleDisplayMode@12

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Faule Socke
Posts: 8
Joined: Sun Feb 15, 2009 9:43 pm

Unresolved external symbol _SetConsoleDisplayMode@12

Post by Faule Socke »

Hi,

my Linker (Visual Studio 2008) says the following, when I try to compile irrlicht 1.6 on my own:

Code: Select all

CIrrDeviceConsole.obj : error LNK2001: Nicht aufgelöstes externes Symbol "_SetConsoleDisplayMode@12".

Which translated means something like:
CIrrDeviceConsole.obj : error LNK2001: Unresolved extrenal symbol "_SetConsoleDisplayMode@12"
The error occours in both configurations, debug and release. I have also tried the head revision from the repository, the same problem.

I hope, someone can help me and sorry for my bad english ;-)

Socke
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Re: Unresolved external symbol _SetConsoleDisplayMode@12

Post by randomMesh »

SetConsoleDisplayMode is WINAPI, so i guess you didn't install it along with Visual Studio 2008.
"Whoops..."
Faule Socke
Posts: 8
Joined: Sun Feb 15, 2009 9:43 pm

Post by Faule Socke »

What exactly i have to install? I've tried the Windows SDK, but the installation failed (it tells me something like resource unavaliable). I think it don't works under Windows XP. Is the Platform SDK also ok?

Socke
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post by randomMesh »

Faule Socke wrote:I've tried the Windows SDK, but the installation failed...
Ahh!
Faule Socke wrote:I think it don't works under Windows XP.
It does.
Faule Socke wrote:Is the Platform SDK also ok?
Yes, since it contains the Windows SDK.
"Whoops..."
Faule Socke
Posts: 8
Joined: Sun Feb 15, 2009 9:43 pm

Post by Faule Socke »

Hi,

at first: i have solved the problem.

I have tried to install the Windows SDK (as described in my previous post), but i had the wrong version (that one for Windows Server 2008). Then I picked the Version for Windows 7 and tried this one. The installation worked fine, but the error while compiling was still there. Then I have noticed, that there was still an (old) version of the Platform SDK for Server 2003 installed. I have removed it and because of the order of the library files in Visual Studio now the linker is choosing a new version of the kernel32.lib and linking works fine.

Now I have to assure, that compiling (not linking) of irrlicht still works fine and then I tell you, if I had success.

Thanks for your help,

Socke
Faule Socke
Posts: 8
Joined: Sun Feb 15, 2009 9:43 pm

Post by Faule Socke »

Ok it works, thanks very much!

Socke
Post Reply