I am new to Visual C++.
I am trying to use library A that in turn uses another library B. When I try to include the header of A, I get an “Error C2061: syntax error : identifier ‘GUID'”. This error is triggered in a header in library B. When I examine the line that throws the error, the issue is that the header in library B is using a definition found in Guiddef.h, which is a microsoft header.
The problem is that I can’t seem to be able to add this header or to create a project that adds it.
I am using Visual Studio 2010 Premium.
Any ideas of what I am doing wrong?
Don’t know what you mean by add it to a project or create one that adds it ,but when guiddef.h is on your system and your directories (in common properties) to your MSVC environment are correctly setup ,you just have to add
#include <guiddef.h>before the including of lib-headerfiles to your cpp or h files and everything will (should) be fine.