Open Anirudhhitech opened 1 year ago
How to resolve this error
cmake --build . [ 2%] Built target Common [ 23%] Built target Can [ 53%] Built target J1939 [ 55%] Linking CXX executable j1939Decoder /usr/bin/ld: ../../J1939/libJ1939.so.1.0.0: undefined reference to Json::Value::operator=(Json::Value&&)' /usr/bin/ld: ../../J1939/libJ1939.so.1.0.0: undefined reference toJson::Value::Value(unsigned long)' collect2: error: ld returned 1 exit status make[2]: [BinUtils/j1939Decoder/CMakeFiles/j1939Decoder.dir/build.make:86: BinUtils/j1939Decoder/j1939Decoder] Error 1 make[1]: [CMakeFiles/Makefile2:488: BinUtils/j1939Decoder/CMakeFiles/j1939Decoder.dir/all] Error 2 make: *** [Makefile:130: all] Error 2
Json::Value::operator=(Json::Value&&)' /usr/bin/ld: ../../J1939/libJ1939.so.1.0.0: undefined reference to
Hello, it's a little bit late answare but i think it's already solved in this issue. It worked for me
How to resolve this error
cmake --build . [ 2%] Built target Common [ 23%] Built target Can [ 53%] Built target J1939 [ 55%] Linking CXX executable j1939Decoder /usr/bin/ld: ../../J1939/libJ1939.so.1.0.0: undefined reference to
Json::Value::operator=(Json::Value&&)' /usr/bin/ld: ../../J1939/libJ1939.so.1.0.0: undefined reference to
Json::Value::Value(unsigned long)' collect2: error: ld returned 1 exit status make[2]: [BinUtils/j1939Decoder/CMakeFiles/j1939Decoder.dir/build.make:86: BinUtils/j1939Decoder/j1939Decoder] Error 1 make[1]: [CMakeFiles/Makefile2:488: BinUtils/j1939Decoder/CMakeFiles/j1939Decoder.dir/all] Error 2 make: *** [Makefile:130: all] Error 2