error C2099: initializer is not a constant

S

skyworld

Hi,

I defined such parameters in test.h to setup my GUID for driver
application GUI:

DEFINE_GUID(CY_DEVICE_ORIGINAL,
0xfeca14b8, 0x9796, 0x452c, 0xac, 0x3b, 0x87, 0x8c, 0x9e, 0xbd, 0x54,
0x2b);

GUID CY_DEVICE = CY_DEVICE_ORIGINAL;

But when I compile the project with visual c++, I got such message:

error C2099: initializer is not a constant

which indicates there is something wrong with "GUID CY_DEVICE =
CY_DEVICE_ORIGINAL". Can anybody help me to understand this? Thanks
very much.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top