Advertisement

VC9 Debug Build gives compiler errors

Started by March 13, 2012 06:31 PM
1 comment, last by Friggle 12 years, 11 months ago
Hi,

the VC9 Debug build (Win32) for AngelScript 2.23.0 throws heaps of compiler/preprocessor errors, e.g:

1>as_atomic.cpp
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\specstrings.h(171) : error C2008: '$': unerwartetes Zeichen in Makrodefinition'

(the german text portion of the message translates to 'unexpected token in macro definition')

This is related e.g. to the following code line:
#define __$adt_prop(adt,prop)

The Release build seems to be fine.
Any ideas?

Many thanks and regards,
Thomas
Interesting. I use MSVC9 myself and I don't have this problem.

It looks like the Microsoft SDK is using some syntax that the MSVC9 compiler doesn't recognize. I personally never saw the use of $ in a preprocessor macro. I wonder what it would mean.

Did you perhaps upgrade the Microsoft SDK recently?

A little googling on the string '#define __$adt_prop(adt,prop)' shows that others have similar problem in other projects.

It looks like it is a language extension that Microsoft uses. Did you perhaps turn off language extensions in the project settings?

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement
Hi,

in fact the language extensions had been disabled for the debug build. Don't know how this happened, though.

Anyway, the problem is resolved. Many thanks!

Regards,
Thomas

This topic is closed to new replies.

Advertisement