Am 20.02.2012 13:17, schrieb Felix Maier:
>
> cl -Fosrc\hpdf_image_ccitt.obj /MD -nologo -O2 -Iinclude -
> Iwin32\include
> -I"../../libpng"\include -I"../../zlib"\include -DHPDF_DLL_MAKE -c
> src\hpdf_i
> mage_ccitt.c
> hpdf_image_ccitt.c
> src\hpdf_image_ccitt.c(761) : error C2373:
> 'HPDF_Image_LoadRaw1BitImageFromMem':
> Neudefinition; unterschiedliche Modifizierer
> include\hpdf.h(769): Siehe Deklaration von
> 'HPDF_Image_LoadRaw1BitImageF
> romMem'
> NMAKE : fatal error U1077: ""c:\Programme\Microsoft Visual Studio
> 10.0\VC\BIN\cl
> .EXE"": R�ckgabe-Code "0x2"
> Stop.
>> .EXE"": R�ckgabe-Code "0x2"
>> Stop.
>
On 2012-08-31 18:07, CarlosRPEvertsz wrote:Come on, ZLib and libpng are probably two the most widely used open source libraries ever and you're saying you can't find them in Google?
Compiling this with MS VC++ is a real nightmare.
Where did you find all the header files beginning with z*.h and *png*.h ? I found some of them in google, but has different references than the creator ones.
http://www.zlib.net
http://www.libpng.org
--
---
libHaru.org development mailing list
To unsubscribe, send email to libharu-u...@googlegroups.com
a.
The hpdf_config.h file is set so that I will build the library with both PNG as ZLIB functionality.
#define LIBHPDF_HAVE_LIBZ 1
#define LIBHPDF_HAVE_LIBPNG 1
b. The .h files are referenced in the LibHaru code as system .h files (i.e. #include <zlib.h>).
c.
The .h files for ZLIB appear in the following directories on my machine:
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include
C:\Program Files\Microsoft Visual Studio 9.0\VC\include
2. I have an additional layer of code that allows me to separate the LibHaru calls by one additional level from the library. This is also built as a library.
3.
The application layer calls out the zlib and the png libraries as an additional dependency (Properties::Linker::Input::Additional
Dependencies) for
the Link step. In addition, I specifically call out my LibHaru library
and my abstraction layer specifically (Properties::Linker::General::Additional Library Directories). I had added the ZLIB and PNGLIB libraries to the System library folder in the following
two folders:
The directory for the .lib files are:
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib
C:\Program Files\Microsoft Visual Studio 9.0\VC\lib
These also appear in several other folders as well, but they are all the same file.
I could have just added the reference to the libraries to where I had
unzipped the library initially, telling VC where these specific library
files are located.
Hope this helps.
Bill
--