G
G
German2019-04-04 20:07:26
C++ / C#
German, 2019-04-04 20:07:26

Macro definition change or conflict between defines?

I use pdcurses and Windows.h , but since and there and there is MOUSE_MOVED, then they conflict.
Visual Studio 2017 build output

1>d:\windows kits\10\include\10.0.17763.0\um\wincontypes.h(103): warning C4005: MOUSE_MOVED: изменение макроопределения
1>c:\users\emilia\desktop\vs\pdcursestest\include\curses.h(160): note: см. предыдущее определение "MOUSE_MOVED"

How to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vanyamba-electronics, 2019-04-04
@vanyamba-electronics

Decompose the project into DLLs and compile them: one for windows, one for ncurses.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question