I'm new here, but I have been following you (the team) on YouTube for quite some time. I have been programming a map editor in C++/SDL and have come to the point where I need to save my map data. My map data consists of a map.txt file (no problem creating it) and a tile.png. I know that SDL does not have built in functions to save PNG's, and seeing how I am not very good in C++ or writing filetype savers for the matter, I went on a google hunt for a function. I have found it at http://encelo.netsons.org/_download/savesurf.tar.gz .
I have downloaded that, included pngfuncs.c and pngfuncs.h into my project, and tried to build my project. Of course it failed because I did not have libpng in my includes. So, I went and got libpng, compiled it (first time compiling a package, but I don't think I failed D:), and included it into my project, etc. I built my project this time and everything went well. Upon launching my application, and attempting to save my map, I encountered this
Code: Select all
libpng: warning: Application was compiled with png.h from libpng-1.0.5
libpng: warning: Application is running with png.c from libpng-1.2.29
libpng: error: Incompatible libpng version in application and library
libpng error: Incompatible libpng version in application and library
I checked my headers and libs, and they are all at version 1.2.29, I even replaced the libpng.dll in my application directory, but that message still pops up.
I honestly don't know what to do now.