Problems with compiled libgit2 Library
-
I have Problems with my Library i compiled from libgit2 Sources. Maybe someone can help me. To compile i have everything done like described here https://libgit2.github.com/docs/guides/build-and-link/.
First i used the static Library and then tried the dynamic Library, but both give me an "undefined Reference" Error. I used right Click in .pro File to add the Library to the Project. i selected the compiled .lib File (Windows) and set the Include Path.
Then i wrote "git_libgit2_init()" in my main File to test it. But he says me that git_libgit2_init() is an undefined Reference. Im using MSVC 2017 on Windows.
Somebody can explain that to me?
I found this https://github.com/libgit2/libgit2/pull/749#issuecomment-6434565, but that doesnt work for me. I compiled with the -DSTDCALL=OFF Option.
-
Hi,
How is it related to Qt ?
Things to check:
- same compiler version ?
- same architecture ?
-
I thought its maybe a Problem with QT Creator. Sorry, but im just a little bit sad about it. I hoped somebody can help me. Normally i get an "Undefined Reference" Error when he cant find the Library. Including is not the Problem.
If not, its a Problem with the compiled Library itself.
-
Did you proceed to the check I suggested ?
-
Compiler is fine and Architecure too. A Friend compiled the Lib and tested it in Visual Studio. He had no Problems. It seems im doing something wrong. I try it again and write later if it worked.
My Settings... Problem still exists
This post is deleted! -
Compiler is fine and Architecure too. A Friend compiled the Lib and tested it in Visual Studio. He had no Problems. It seems im doing something wrong. I try it again and write later if it worked.
My Settings... Problem still exists
Hi @Fuel,
I thought its maybe a Problem with QT Creator.
If, at all, it may be a problem with QMake.
Sorry, but im just a little bit sad about it. I hoped somebody can help me.
We already trying to do this, but you need to provide us some more infos to help.
If not, its a Problem with the compiled Library itself.
That may also be, but please show us the compile log with the linker call.
Regards