Linker won't find SharedCode

I’m getting the error:

clang: error: no such file or directory: '/Users/rrabien/dev.github/Vanguard/Builds/xcode/Vanguard_artefacts/Debug/libVanguard_SharedCode-d.a'

because the library being generated is libVanguard_SharedCode.a.

Any idea why I’m getting the name mismatch trying to do a debug build.

The one without the -d prefix is the release version.

If you’re using cmake, have you customized any of the variables related to configuration prefixes/suffixes?

Ah, that was it. Removing set (CMAKE_DEBUG_POSTFIX -d) fixes it.

1 Like