Skip to content
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

_CVUI_COMPILE_MESSAGE as unknown-pragmas #96

Open
adahbingee opened this issue Jul 28, 2020 · 1 comment
Open

_CVUI_COMPILE_MESSAGE as unknown-pragmas #96

adahbingee opened this issue Jul 28, 2020 · 1 comment
Labels
bug c++ Issues related to the C++ version of cvui enhancement

Comments

@adahbingee
Copy link

#pragma message error

Compiling: src/main.cpp -> build/release/main.o
g++  -flto -fopenmp -std=c++17 -O3 -Ofast -Wall -Werror  -I ./src -I./include/ -MP -MMD -c src/main.cpp -o build/release/main.o
In file included from src/main.cpp:17:
./include/cvui.h:1364: error: ignoring '#pragma _CVUI_COMPILE_MESSAGE ' [-Werror=unknown-pragmas]
 1364 |  #pragma _CVUI_COMPILE_MESSAGE(_CVUI_NO_IMPLEMENTATION_NOTICE)
      |
cc1plus.exe: all warnings being treated as errors
make[1]: *** [makefile:245: build/release/main.o] Error 1
make: *** [makefile:176: release] Error 2

Environment

Using built-in specs.
COLLECT_GCC=C:\msys64\mingw64\bin\g++.exe
COLLECT_LTO_WRAPPER=C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-10.1.0/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64 --with-tune=generic --enable-languages=c,lto,c++,fortran,ada,objc,obj-c++ --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-filesystem-ts=yes --enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --disable-plugin --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev3, Built by MSYS2 project' --with-bugurl=https://sourceforge.net/projects/msys2 --with-gnu-as --with-gnu-ld
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.1.0 (Rev3, Built by MSYS2 project)
@Dovyski Dovyski added bug c++ Issues related to the C++ version of cvui enhancement labels Jul 28, 2020
@Cyper77
Copy link

Cyper77 commented Aug 27, 2020

check your GCC and try it with -std=c++11
https://unix.stackexchange.com/questions/165603/how-to-set-c11-as-my-default-compiler
or make a lib as Master Dovyski mentioned ;)
https://dovyski.github.io/cvui/build/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug c++ Issues related to the C++ version of cvui enhancement
Projects
None yet
Development

No branches or pull requests

3 participants