-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiler error LNK2019 #71
Comments
Do you solve this problem? I have the same. Looks like the version of the rplidar_driver and linking it. |
I stopped looking at this project a long time ago. But I think I solved this problem by setting the generated code attribute when linking the library. as follows: |
Solved. There are a few steps. The Visual Studio configuration manager can get into some trouble with it.
Then I was able to build both driver and my project in x64 without errors. |
After making some very minor changes (which I had to do to get the sdk to work), when I try to compile I get this error:
1:
Severity Code Description Project File Line Hide Status
Error LNK2019 unconverted outer symbol "struct sl::Result<class sl::IChannel *> __cdecl sl::createSerialPortChannel(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,int)" (?createSerialPortChannel@sl@@ya?AU?$Result@PEAVIChannel@sl@@@1@AEBV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D @2@@std@@h@Z) referenced at your parent ConsoleApplication1
2:
Severity Code Description Project File Line Hide Status
Error LNK2019 unresolved external symbol "struct sl::Result<class sl::ILidarDriver *> __cdecl sl::createLidarDriver(void)" (?createLidarDriver@sl@@ya?AU?$Result@PEAVILidarDriver@sl@@@1@ XZ) referenced in main function ConsoleApplication1
NOTE:
The examples that come with the sdk are not compiled, but the project required for the .lib file is compiled. So, I have a compiled file "rplidar_driver.lib" and the LIBRARY setting has been made for the project.
The text was updated successfully, but these errors were encountered: