LINK : fatal error LNK1104: cannot open file 'libcollada14dom21.lib'
-
26-09-2019 - |
Question
I have hot this error at the linker:
LINK : fatal error LNK1104: cannot open file 'libcollada14dom21.lib'
I dunno why, libcollada14dom21.lib is in VSDIR/VC/lib.
Solution
Make sure that you add libcollada14dom21.lib to Project Options -> Linker -> Input -> Additional Dependencies.
OTHER TIPS
Okay, solved :) The libs were in the lib dir, not in the lib/amd64 :D
I was getting this in solution where there are multiple projects. Even though all outputs are created to the same folder, I still had to provide a relative path of the library Project settings >>...>> Linker >> Input >> 'Additional Dependencies'
from the client project or include hardcoded path of where to find the library!
Another craziness is that it also seems to depends on relative path of output of client executable. If my output directory is standard, the relative path doesn't work! If I change output directory to the same folder where the library is then relative path from executable works...kind of strange.