Code: Select all
CompilerIf #PB_Compiler_IsMainFile
ImportC "git2.lib"
git_libgit2_init()
EndImport
git_libgit2_init()
CompilerEndIf
git2.lib(libgit2.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
LINK : fatal error LNK1171: unable to load c2.dll (error code: 126)
So that's fine, I make a linker options file with /LTCG in it, and use it. Gets rid of that error, but this one still remains:
LINK : fatal error LNK1171: unable to load c2.dll (error code: 126)
I'm utterly lost on what to do here. I have no idea what c2.dll is. Googling was inconclusive, I found a few references to it in Everything search, but haven't been able to figure it out. SO I turn to you, amazing community!

Thanks in advance for any help!