Minimal working example demonstrating my issue linking to my shared Wml3 lib.
Note, the WML3 code is not available in this Gist.
cmake -G"Visual Studio 12 2013 Win64" <source>
Open the project with Microsoft Visual Studio 12 2013, and build the testapp
target.
Error 2 error LNK1120: 1 unresolved externals C:\Users\mrussell\workspace\wml-min-example\bld\Release\testapp.exe testapp
Error 1 error LNK2019: unresolved external symbol "public: static double const Wm3::Math<double>::DEG_TO_RAD" (?DEG_TO_RAD@?$Math@N@Wm3@@2NB) referenced in function main C:\Users\mrussell\workspace\wml-min-example\bld\main.obj testapp
cmake -GNinja -DCMAKE_BUILD_TYPE=Release <source> && ninja
(To use Makefiles, simply leave out the -GNinja
)
Builds and runs without issue