hey
I am trying to load a .irr file using the 15th tutorial available.
I have used the exact same code given but have chosen a different .irr file.
However i have one strange error that I'm not really sure why I am getting it. the error is this:
: fatal error C1021: invalid preprocessor command 'def'
here is the piece of code it's referring to:
#def _MSC_VER
#pragma comment(lib, "irrlicht.lib")
#endif
any help or guidance to solving this issue would be great!
thanks
only1skingle
Irrlicht Tutorial 15 .irr load file code Error->PLEASE HE
-
- Posts: 25
- Joined: Mon Sep 27, 2010 6:51 pm
- Location: United Kingdom
-
- Posts: 1215
- Joined: Tue Jan 09, 2007 7:03 pm
- Location: Leuven, Belgium
this should be #ifdef _MSC_VER
EDIT:
If you're having problems with preprocessor directives, this page gives a nice overview http://www.cplusplus.com/doc/tutorial/preprocessor/
Actually, that whole site is excellent as a C++ reference
EDIT:
If you're having problems with preprocessor directives, this page gives a nice overview http://www.cplusplus.com/doc/tutorial/preprocessor/
Actually, that whole site is excellent as a C++ reference
-
- Posts: 25
- Joined: Mon Sep 27, 2010 6:51 pm
- Location: United Kingdom
-
- Posts: 1215
- Joined: Tue Jan 09, 2007 7:03 pm
- Location: Leuven, Belgium
Code: Select all
// For educational purposes <- don't mess with big big companies ;)
* Copyright (c) Microsoft Corporation. All rights reserved.
#ifndef __analysis_assume
#ifdef _PREFAST
#define __analysis_assume(expr) __assume(expr)
#else
#define __analysis_assume(expr)
#endif
#endif
never noticed the #ifdefs in the tutorials so I thought it was changed in an included header. Thus I thought I could help here just a little bit.
No I am no noob, just checking if your not one too
Thanks to Niko and all others that made Irrlicht possible.
Thanks to Niko and all others that made Irrlicht possible.