I just downloaded the latest gd library, unziped it - i downloaded a dll version and a source code version. I have problems whit using it in my msvc application.
I will paste here the install specifications for visual c++ users :
[I]Instructions from the gd site :[/I] How do I get gd? Binaries (DLL for Windows programmers): * .ZIP File of DLL, Headers, Et Cetera Source Code: * Gzipped Tar File (Unix) * .ZIP File of SOURCE CODE (Windows) How do I build gd? Win32 DLL users: if you are using MSVC, use the provided batch file makemsvcimport.bat to make a bgd.lib import library corresponding to the provided bgd.dll. Copy bgd.dll to your application directory, or to your Windows sytem directory. In the settings of your MSVC project, you MUST choose the "multithreaded DLL" library option under "code generation." mingw32 and cygwin users can simply link with the provided libbgd.a stub library in order to use the DLL. Building gd From the Source In order to build gd, you must first unpack the archive you have downloaded. [I]The following instructions are taken from a different site :[/I] Instructions 1.Download the gd library for Windows from http://www.boutell.com/gd/ . The latest version is 2.0.33 (Windows dll). 2.Unzip the archive to a suitable place. The package provides a dll and an import library for the MinGW compiler. To obtain an import library for the MSVC compiler run the makemsvcimport.bat batch file in a CLI with the correct environment settings for MSVC. 3.In order to let cmake find the gd library files you need to set environment variables (best in batch file - see above), e.g. set GDLIBDIR=C:\DevZone\gdwin32 set CMAKE_INCLUDE_PATH=%GDLIBDIR% set CMAKE_LIBRARY_PATH=%GDLIBDIR% CMake should than be able to find the gd library and headers and the gd driver (png, gif, jpeg) will be automatically compiled into the library.
I dont' quite understand the latest step :how do i set the environment variables in the batch file ? how do i run the batch file ? just double clicking it ?
This is what i've done : i copied the unziped folder of the gd library in my application folder. i set the option for multitheread DLL, then i wrote "include gd.h" like in the samples in the "index" file in the gd library folder which i downloaded (this index file contains information about installing the library) .
when i compile i get the error : cannot open include file : "gd.h" :not such file or directory.
why? can you help me please? i haven't included libraries in visual c++ before. sorry, i am a newbie on this matter.
thanks in advance.