Skip to content
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

can not open math.lib(VS2022) #66

Open
SJame4 opened this issue Dec 19, 2022 · 1 comment
Open

can not open math.lib(VS2022) #66

SJame4 opened this issue Dec 19, 2022 · 1 comment

Comments

@SJame4
Copy link

SJame4 commented Dec 19, 2022

When I used VS2022 to run code like rlAxisControllerDemo.cpp,it was wenting wrong with Error LNK1181:Can not open math.lib.Then I find math.lib appering in CMakeLists.txt's target_link_librrariers module.I use many tools to find math.lib,but it does not work.So I want to know how to fix this problem.Looking forward to your answer! Thank you very much!

@rickertm
Copy link
Member

Did you compile rlAxisControllerDemo as part of the RL source code or as a separate project? The math in the CMake file for rlAxisControllerDemo refers to the rl::math target that is available as math during the build of RL:

target_link_libraries(
rlAxisControllerDemo
hal
math
)

See also:
add_library(math INTERFACE ${HDRS})

If you setup your own CMake project, you will have to find RL via find_package() and use the full qualifier rl::math (and rl::hal) instead.

If your issue is different, please provide more details on how you setup, configure, and compile the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants