[SOLVED] Error C1021

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Piter467
Just popping in
Just popping in
Posts: 3
Joined: Thu Mar 13, 2014 00:39

[SOLVED] Error C1021

Postby Piter467 » Thu Mar 13, 2014 00:44

Hi,

I'm getting started with cegui. Just compiled the libraries and added to my project the files needed. I get this error after including "CEGUI/RendererModules/Irrlicht/Renderer.h":

invalid preprocessor command 'cmakedefine' - archive: config.h

Error info: http://msdn.microsoft.com/en-us/library/t9ac52dx(v=vs.90).aspx

I hope you can help me, since I think I'll give up soon...

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Error C1021

Postby Ident » Thu Mar 13, 2014 10:38

Never seen this error. Can you provide the full error message from your IDE? i need to know what line it appears in. Also you didnt mention what compiler you use and what CEGUI version you use... which is the most obvious thing to mention and which is also described in the posting guidelines.

Piter467 wrote:I hope you can help me, since I think I'll give up soon...

Programming is about not giving up when you are trying to fix an error, otherwise you get nowhere.
CrazyEddie: "I don't like GUIs"

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Error C1021

Postby Kulik » Thu Mar 13, 2014 14:54

You must have copied files randomly all over the place since you are including a cmake configure input file.

Please try to understand the configure and build process and then proceed. There is no need to copy or rename anything manually.

https://www.youtube.com/watch?v=VaD-MQJLtWk

Piter467
Just popping in
Just popping in
Posts: 3
Joined: Thu Mar 13, 2014 00:39

CEGUIExpatParser_d.dll: Unkown Error

Postby Piter467 » Thu Mar 13, 2014 21:35

Hi, I think now I followed all the steps properly but get this error:

"Failed to load module 'CEGUIExpatParser_d.dll': Unkown Error"

I copied that dll to the exe's directory, so I don't know what I am missing now...

Any advice is welcome, thank you

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: CEGUIExpatParser_d.dll: Unkown Error

Postby Ident » Thu Mar 13, 2014 21:43

Piter467 wrote:I copied that dll to the exe's directory, so I don't know what I am missing now...

No, you didn't. You are missing the dll mentioned in the error message. Maybe you forgot to set the working directory of your project in case you use Visual Studio.
CrazyEddie: "I don't like GUIs"

Piter467
Just popping in
Just popping in
Posts: 3
Joined: Thu Mar 13, 2014 00:39

Re: CEGUIExpatParser_d.dll: Unkown Error

Postby Piter467 » Fri Mar 14, 2014 00:55

Problem solved after also adding expat_d.dll. Thank you all for your replies


Return to “Help”

Who is online

Users browsing this forum: No registered users and 24 guests