Skip to content

undefined reference to `openvdb::v7_2::initialize()' #1312

Answered by Megidd
Micrufun asked this question in Q&A
Discussion options

You must be logged in to vote

Fix 🔧

The cause of the linker errors was this statement:

if(LINUX)

The fix was to replace it with this:

if(UNIX AND NOT APPLE)

This commit fixes the problem:

Reference: https://stackoverflow.com/a/40152725/3405291

Strangely, CMake wasn't complaining about anything and just throwing random linker errors.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Idclip
Comment options

@Megidd
Comment options

@astitvaveergarg
Comment options

@Megidd
Comment options

Answer selected by Micrufun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants