Hi,
finally i got it running but cant get rid of a warning:
POLINK: warning: Multiple '.rdata' sections found with different flags (0x40000040 and 0xc0000040).
This warning is because i use MSVCRT instead of pelles runtime (have not found any other way to get libdg running like many other libs too). I dont know how to get arround the warning but the compiled executable is running as it should.
For interested people i attach a complete zipped project including the dependencies.
copy the content from the lib folder into pellesc libfolder the same goes for include. make sure that the bgd.dll is inside the same folder your executable is.
As a bonus this project is an example on how to write a CGI for a webbrowser.
I hope i not forget to include something but i tested here and it works. Have fun!
EDIT: Because of the limit of 256 KB for attachments you have to mess some more around ;-)
inside the attached project is a lib folder copy the msvcrt.lib from there into pellesc libfolder
then get the latest gd files from here:
http://www.libgd.org/releases/gd-latest-win32.zipcopy the content from the lib folder into pellesc libfolder same goes for include.
inside the bin folder is a bgd.dll copy this into the same folder as the executable in this case my project folder.
Greetings
Seltsamuel