Advertisement

Problem with Independent JPEG Group lib!

Started by April 07, 2002 07:32 AM
1 comment, last by Austrian Coder 22 years, 10 months ago
So... I have found an exemple who to use the jpeg.lib. But when i try to use it in my own lib it doesnt go. I put the headers and the lib into the Folder of the others Headers and Sources for my lib. Then i make this: #include "jpeglib.h" // For the jpeg library #pragma comment(lib, "Jpeg.lib") // Search for the jpeg library at compile time And i get this errors: c:\opengl\engine\3dexp\jpeglib.h(66) : error C2143: Syntaxfehler : Fehlendes '';'' vor ''*'' c:\opengl\engine\3dexp\jpeglib.h(66) : error C2501: ''JSAMPROW'' : Fehlende Speicherklasse oder Typbezeichner c:\opengl\engine\3dexp\jpeglib.h(67) : error C2143: Syntaxfehler : Fehlendes '';'' vor ''*'' c:\opengl\engine\3dexp\jpeglib.h(67) : error C2378: ''JSAMPROW'' : Neudefinition; Symbol kann nicht mit typedef überladen werden c:\opengl\engine\3dexp\jpeglib.h(66) : Siehe Deklaration von ''JSAMPROW'' c:\opengl\engine\3dexp\jpeglib.h(67) : error C2501: ''JSAMPARRAY'' : Fehlende Speicherklasse oder Typbezeichner ... ... ... c:\opengl\engine\3dexp\jpeglib.h(767) : Siehe Deklaration von ''JBLOCKARRAY'' c:\opengl\engine\3dexp\jpeglib.h(940) : error C2061: Syntaxfehler : Bezeichner ''JSAMPARRAY'' c:\opengl\engine\3dexp\jpeglib.h(946) : error C2061: Syntaxfehler : Bezeichner ''JSAMPIMAGE'' c:\opengl\engine\3dexp\jpeglib.h(978) : error C2061: Syntaxfehler : Bezeichner ''JSAMPARRAY'' c:\opengl\engine\3dexp\jpeglib.h(984) : error C2061: Syntaxfehler : Bezeichner ''JSAMPIMAGE'' Fehler beim Ausführen von cl.exe. Demo.exe - 604 Fehler, 20 Warnung(en) Where could be the Error? I have tryed this now about 1 hour *grrr*. thx, Austrian Coder
Hi there!

Well... I used to have many problems with that library too. So, I finally purchased a commercial library, which is really good (you can not only load JPEGs very easy, but you can also save any current image of your application at any time).

Since the guys who build that library are not longer selling it (nor giving tech support) I don''t think there''s a problem if I share it with you... well, I don''t like to warez, but I''m positive that they will not care.

If you''re interested, feel free to e-mail me at gameover@vtr.net

Bye!
Advertisement
Try using Intel''s JPEG Library, its fast, free, and very easy to use.
---I write code.DelphiGL (http://delphigl.cfxweb.net)

This topic is closed to new replies.

Advertisement