I made a program on mac osx using opengl and dynamically linking libpng. Im now trying to port it to windows. Whenever I try to compile and link my ported program in borland it gives me this error and about 10 more that are the same but with a different '_png_create_read_struct'
Error: Unresolved external '_png_create_read_struct' reference from C:\PROGRAMMING\PNGTEST.OBJ
I assume its because I have not properly set up libpng with Borland c++ 5.5.1 for win32. I've put png.h and pngconf.h into the include folder into C:\Borland\BCC55\Include and I have put libpng12.dll.a libpng13.a libpng13.dll.a libpng.a libpng.dll.a libpng12.def libpng.def libpng12.la and libpng.la into C:\Borland\BCC55\Lib (there is probably no need for them all, but as a noob im i have no idea which ones are needed and not). Do i need to put a libpng.obj file in there too? and if so how would i make/get one? I have tried using makefile.bc32 to set up libpng yet that gives me a missing separator error. Here is my command line options:
bcc32 -tW pngtest.cpp -lpng
I include png.h in my code. If anybody knows what I'm doing wrong or even a better way to load images with alpha that doesn't need libpng, or even a better compiler to get for windows that would be greatly greatly appreciated.