peadar / pstack

Print stack traces from running processes, or core files. Supports aarch64, x86_64, and i386
BSD 2-Clause "Simplified" License
134 stars 34 forks source link

Issues compiling with GCC 5.4.0 #1

Closed platinum95 closed 6 years ago

platinum95 commented 6 years ago

Was running into some C++14 related issues when compiling with gcc 5.4.0. Seems like -std=c++14 wasn't getting set during the cmake configuration. Got around the problem by adding set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14") to the 2 CMakeLists. Not sure if this affects any other versions (haven't checked) or if it's even a real issue, just figured I'd post.

peadar commented 6 years ago

Can you tell me what version of cmake you're using? Is this a stock Linux distro? If so, which and which version?

On Wed, 11 Jul 2018, 16:46 platinum95, notifications@github.com wrote:

Was running into some C++14 related issues when compiling with gcc 5.4.0. Seems like -std=c++14 wasn't getting set during the cmake configuration. Got around the problem by adding set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14") to the 2 CMakeLists. Not sure if this affects any other versions (haven't checked) or if it's even a real issue, just figured I'd post.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/peadar/pstack/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AAnmjSBcxRkXUrtGF31FW-576XCOk-zRks5uFg_QgaJpZM4VLSMR .

platinum95 commented 6 years ago

Closing since issue was due to cmake 2.8, which was released prior to widespread c++14 support.