Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

enum namespace conflict

$
0
0

C++ from Parallel Studio XE 2017 Cluster Edition, Windows 7

enum StiffnessModel
{
    Seed = 1,
    Chord = 2
};

Produces namespace collision with

C:\Program Files (x86)\Windows Kits\8.1\Include\um\wingdi.h(3615): error : "Chord" has already been declared in the current scope
1>     WINGDIAPI BOOL  WINAPI Chord( _In_ HDC hdc, _In_ int x1, _In_ int y1, _In_ int x2, _In_ int y2, _In_ int x3, _In_ int y3, _In_ int x4, _In_ int y4);

My work around is to change the name in the enum (Chord_sm).

Jim Dempsey


Viewing all articles
Browse latest Browse all 1175

Trending Articles