SpartanJ / SOIL2

SOIL2 is a tiny C library used primarily for uploading textures into OpenGL.
MIT No Attribution
370 stars 75 forks source link

Linking error: soil2-debug.obj #23

Closed SpartanJ closed 5 years ago

SpartanJ commented 5 years ago

Original report by Anonymous.


Hi,

I've tried to use SOIL2 for my x64 project but I've got a linking error. Apparently there is a missing obj file, soil2-debug.obj. I've compiled the project in vs17 but got no obj file like that. Any suggestions? Also if my vs version is the issiue, I would be obliged if you could send me this missing obj file.

SpartanJ commented 5 years ago

Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).


Sorry. That's not a bug, there's something wrong in the way you created the project. Probably you did not compile the SOIL2 files, but the headers are there, so it compiles but i does not find the symbols to link. I can't help you if you don't show me a little more how you created that project.

Regards

SpartanJ commented 5 years ago

Original comment by C JuniorX (Bitbucket: Heisenberg333, GitHub: Heisenberg333).


I used premake4 and created the project for vs2012. Then I opened it in vs17 updated the solution then I compiled it. I have everything except soil2-debug.obj

SpartanJ commented 5 years ago

Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).


I just tested the project created with premake4 in VS 2017 and builds and runs just fine. You just need to open the solution with the three projects and build the soil2-test. I don't know how to help you. You need to install SDL2 before being able to build that project. Based on your comment, you are trying to run the build of the static library ( soil2-debug should be that ), and that's not possible, it's a static library.

SpartanJ commented 5 years ago

Original comment by C JuniorX (Bitbucket: Heisenberg333, GitHub: Heisenberg333).


That will be the problem I think, thanks for your help.