New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler warning on Windows #158

jeroen opened this Issue Nov 5, 2018 · 0 comments


None yet
1 participant

jeroen commented Nov 5, 2018

Seeing the warning below on Windows. You can fix this by compiling with -DSTRICT_R_HEADERS

c:/Rtools/mingw_64/bin/gcc  -O2 -Wall  -std=gnu99 -mtune=generic supervisor/supervisor.c supervisor/utils.c supervisor/windows.c -o supervisor/supervisor.exe
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-35~1.1/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c init.c -o init.o
In file included from C:/PROGRA~1/R/R-35~1.1/include/R.h:91:0,
                 from init.c:5:
C:/PROGRA~1/R/R-35~1.1/include/R_ext/RS.h:55:0: warning: "ERROR" redefined
 #define ERROR   ),error(R_problem_buf);}
In file included from C:/Rtools/mingw_64/x86_64-w64-mingw32/include/windows.h:71:0,
                 from processx.h:15,
                 from init.c:2:
C:/Rtools/mingw_64/x86_64-w64-mingw32/include/wingdi.h:75:0: note: this is the location of the previous definition
 #define ERROR 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment