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
Failing to link Magnum::Math? #609
Comments
I figured this out. I'm not sure why, but the build succeeds when I do: |
Hi! It's not because of CMake, it's because most Magnum types are forward-declared unless you explicitly include the header the type is defined in. Which is the case of It worked with I admit that this might feel unusual at first, as Hope this helps! :) |
Thanks for the explanation, makes sense upon reading that doc! Maybe a footnote in the example docs about includes linking to that page would be good? |
This might be a misunderstanding of CMake on my part. Compiling a simple project is giving me
After following the setup guide, I added a new file to the bootstrap:
Here is my CMakeLists:
Building using VS0222 after running
cmake -DCMAKE_BUILD_TYPE=Debug ..
I can see the magnum lib being included in VS and there are no other errors- What is happening here? Tried Clean/Rebuild, remake CMake.
The text was updated successfully, but these errors were encountered: