From: Petr Baudis Date: Thu, 31 Jul 2008 11:20:37 GMT Subject: Re: linking libgit.a in C++ projects Message-ID: <20080731112037.GP32184@machine.or.cz> In-Reply-To: <0EC13CCC-0F7B-41A0-BEB2-67E6EC8D5E37@simplicidade.org> On Thu, Jul 31, 2008 at 12:16:45PM +0100, Pedro Melo wrote: > I think the point Dmitry was trying to make is that you should compile > libgit as C, using gcc, and then link it with your C++/Objective C code. > > No patch is required to git, only to your makefile/xcode project file. libgit has a certain (albeit currently unofficial and non-settled) API and the API is defined in header files that must be eatable by C++ compilers in order to do this. Petr "Pasky" Baudis