VobSub2SRT
VobSub2SRT copied to clipboard
Fix compile with gcc7 and tesseract 4
should be in CXX, not in C
You want to remove set(CMAKE_C_FLAGS "-std=gnu99") and add -std to CXX flags?
set(CMAKE_CXX_FLAGS "-ansi -pedantic -Wall -Wextra -Wno-long-long -std=gnu++11")
instead of
set(CMAKE_C_FLAGS "-std=gnu++11")
any chance to merge this?
The alternative set(CMAKE_CXX_STANDARD 11)
— proposed in issue https://github.com/ruediger/VobSub2SRT/issues/73 — works too and is maybe more elegant.
I use gcc (Debian 9.2.1-25) 9.2.1 20200123
and this patch (or the alternative) is still required.
I can confirm this fixed for me build on Linux
This PR needed for docker build too: https://github.com/ruediger/VobSub2SRT/pull/77