How to use libgit2 from a native C++ application on Windows? (Microsoft VC++)

后端 未结 2 432
你的背包
你的背包 2020-12-22 07:32

Summary: Is there any tiny example on how to build the Win32 C++ console application that uses the libgit2 library (sources available at GitHub)?

I

2条回答
  •  青春惊慌失措
    2020-12-22 07:55

    It's a little surprising if you generated the project from CMake, bit it could be that you're not linking to libgit2.lib. Make sure you have git2.dll in Project Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies.

    link to git2.lib

提交回复
热议问题