compressonator icon indicating copy to clipboard operation
compressonator copied to clipboard

Can't build with Clang on Linux

Open ShukantPal opened this issue 2 years ago • 1 comments

I get the error "error: invalid argument '-std=c++14' not allowed with 'C'" basically at the first C file being compiled. This looks like a problem specific to Clang, passing

-DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++

to cmake fixes it. If the docs mention that you have to build with gcc/g++, that would've helped.


BTW After this build passed in my dockerfile 🎉

ShukantPal avatar Aug 13 '21 01:08 ShukantPal

@ShukantPal It maybe helpful to add this docker to the actions build for linux in this repo

NPCompress avatar Aug 18 '21 18:08 NPCompress