qClash icon indicating copy to clipboard operation
qClash copied to clipboard

build error on arch linux: no matching function for call to ‘YAML::BadFile::BadFile()’

Open lankylonky22 opened this issue 2 years ago • 4 comments

image

lankylonky22 avatar Aug 26 '22 13:08 lankylonky22

add the parameter configFile.toStdString() solved it

lankylonky22 avatar Aug 26 '22 13:08 lankylonky22

now yaml-cpp update from 0.6 to 0.7, the function YAML::BadFile signature changed

josephpei avatar Aug 28 '22 01:08 josephpei

my poor cpp, remove"YAML::BadFile()" function call, chang the line to "throw;" will rethrow the exception.

Using throw; without arguments will re-throw the currently caught exception.

josephpei avatar Aug 28 '22 01:08 josephpei

23:05:45: Starting /home/lonky/Code/build-Qlash-Desktop-Debug/qClash... Start with config: "config" terminate called after throwing an instance of 'YAML::TypedBadConversion' what(): bad conversion 23:05:46: /home/lonky/Code/build-Qlash-Desktop-Debug/qClash crashed. wheres the config file located

lankylonky22 avatar Aug 28 '22 15:08 lankylonky22