level 2
如题
引用的是json.h(与cpp文件同目录)
这是报错:
E:\Temp\ccS2tqRs.o: In function `Register()':
e:/ComputerProgrammer/C++/LibrarySystem/LibrarySystem.cpp:29: undefined reference to `Json::Value::Value(Json::ValueType)'
e:/ComputerProgrammer/C++/LibrarySystem/LibrarySystem.cpp:37: undefined reference to `Json::Value::Value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
e:/ComputerProgrammer/C++/LibrarySystem/LibrarySystem.cpp:37: undefined reference to `Json::Value::operator[](char const*)'
e:/ComputerProgrammer/C++/LibrarySystem/LibrarySystem.cpp:37: undefined reference to `Json::Value::operator=(Json::Value&&)'
e:/ComputerProgrammer/C++/LibrarySystem/LibrarySystem.cpp:37: undefined reference to `Json::Value::~Value()'
e:/ComputerProgrammer/C++/LibrarySystem/LibrarySystem.cpp:29: undefined reference to `Json::Value::~Value()'
e:/ComputerProgrammer/C++/LibrarySystem/LibrarySystem.cpp:37: undefined reference to `Json::Value::~Value()'
e:/ComputerProgrammer/C++/LibrarySystem/LibrarySystem.cpp:29: undefined reference to `Json::Value::~Value()'
collect2.exe: error: ld returned 1 exit status
头文件里这些定义全部存在
c_cpp_properties.json里添加了路径
2022年08月10日 08点08分
1
引用的是json.h(与cpp文件同目录)
这是报错:
E:\Temp\ccS2tqRs.o: In function `Register()':
e:/ComputerProgrammer/C++/LibrarySystem/LibrarySystem.cpp:29: undefined reference to `Json::Value::Value(Json::ValueType)'
e:/ComputerProgrammer/C++/LibrarySystem/LibrarySystem.cpp:37: undefined reference to `Json::Value::Value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
e:/ComputerProgrammer/C++/LibrarySystem/LibrarySystem.cpp:37: undefined reference to `Json::Value::operator[](char const*)'
e:/ComputerProgrammer/C++/LibrarySystem/LibrarySystem.cpp:37: undefined reference to `Json::Value::operator=(Json::Value&&)'
e:/ComputerProgrammer/C++/LibrarySystem/LibrarySystem.cpp:37: undefined reference to `Json::Value::~Value()'
e:/ComputerProgrammer/C++/LibrarySystem/LibrarySystem.cpp:29: undefined reference to `Json::Value::~Value()'
e:/ComputerProgrammer/C++/LibrarySystem/LibrarySystem.cpp:37: undefined reference to `Json::Value::~Value()'
e:/ComputerProgrammer/C++/LibrarySystem/LibrarySystem.cpp:29: undefined reference to `Json::Value::~Value()'
collect2.exe: error: ld returned 1 exit status
头文件里这些定义全部存在
c_cpp_properties.json里添加了路径