編譯出現問題 |
尚未結案
|
dullvictory
一般會員 發表:5 回覆:2 積分:1 註冊:2005-08-16 發送簡訊給我 |
#include不好意思..小弟有個問題想請問大家 GLOBAL(int)--->代表什麼意思呢?以及使用的時機呢? 在編譯過程中 void jpg_save_dib_file ( FILE *fp, uchar *dib, int quality, int progression )--->會出現Declaration syntax error是那裡出現錯誤了呢? 請高手解惑..感恩.. |
bass15
高階會員 發表:24 回覆:171 積分:119 註冊:2003-10-27 發送簡訊給我 |
|
bass15
高階會員 發表:24 回覆:171 積分:119 註冊:2003-10-27 發送簡訊給我 |
|
dullvictory
一般會員 發表:5 回覆:2 積分:1 註冊:2005-08-16 發送簡訊給我 |
謝謝..高手的..回應...
只是..我加上 typedef unsigned char uchar;也是沒有用..
再
GLOBAL(int)加上..分號也沒有.用...請高手再幫我看看..
我現在再附上..點H檔..這樣對高手比較好判認..有兩個點H檔..幫幫忙. //bmplib.h
#ifndef BITMAPINFOHEADER /* ????windows.h ?? */ #define TRUE 1
#define FALSE 0 typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef unsigned long DWORD;
typedef long LONG; typedef struct tagRGBQUAD {
BYTE rgbBlue;
BYTE rgbGreen;
BYTE rgbRed;
BYTE rgbReserved;
} RGBQUAD; // DLL ???????
#ifndef EXPORT_OPTION #ifdef MAKEVBDLL
#define EXPORT_OPTION __declspec(dllexport) __stdcall
#define MAKEDLL
#else
#ifdef MAKEDLL
#define EXPORT_OPTION __declspec(dllexport)
#else
#define EXPORT_OPTION
#endif
#endif #endif /* constants for the biCompression field */
#define BI_RGB 0L
#define BI_RLE8 1L
#define BI_RLE4 2L
#define BI_BITFIELDS 3L typedef struct tagBITMAPFILEHEADER {
WORD bfType;
DWORD bfSize;
WORD bfReserved1;
WORD bfReserved2;
DWORD bfOffBits;
} BITMAPFILEHEADER; typedef struct tagBITMAPINFOHEADER{
DWORD biSize;
LONG biWidth;
LONG biHeight;
WORD biPlanes;
WORD biBitCount;
DWORD biCompression;
DWORD biSizeImage;
LONG biXPelsPerMeter;
LONG biYPelsPerMeter;
DWORD biClrUsed;
DWORD biClrImportant;
} BITMAPINFOHEADER; #endif /* ???????? */
typedef unsigned char uchar;
typedef unsigned int uint;
typedef char * DIB; DIB bmp_read_dib_file( FILE *fp ) ;
DIB bmp_read_dib_filename( char *filename ) ;
int bmp_save_dib_file( FILE *fp, DIB dib ) ;
int bmp_save_dib_filename( char *filename, DIB dib ) ;
DIB bmp_expand_dib_rle( DIB dib ) ;
DIB bmp_compress_dib_rle( DIB dib );
DIB bmp_convert_dib_24color( DIB dib ); //jpeglib.h
/* jconfig.vc --- jconfig.h for Microsoft Visual C on Windows 95 or NT. */
/* see jconfig.doc for explanations */ #define HAVE_PROTOTYPES
#define HAVE_UNSIGNED_CHAR
#define HAVE_UNSIGNED_SHORT
/* #define void char */
/* #define const */
#undef CHAR_IS_UNSIGNED
#define HAVE_STDDEF_H
#define HAVE_STDLIB_H
#undef NEED_BSD_STRINGS
#undef NEED_SYS_TYPES_H
#undef NEED_FAR_POINTERS /* we presume a 32-bit flat memory model */
#undef NEED_SHORT_EXTERNAL_NAMES
#undef INCOMPLETE_TYPES_BROKEN /* Define "boolean" as unsigned char, not int, per Windows custom */
#ifndef __RPCNDR_H__ /* don't conflict if rpcndr.h already read */
typedef unsigned char boolean;
#endif
#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */ #ifdef JPEG_INTERNALS #undef RIGHT_SHIFT_IS_UNSIGNED #endif /* JPEG_INTERNALS */ #ifdef JPEG_CJPEG_DJPEG #define BMP_SUPPORTED /* BMP image file format */
#define GIF_SUPPORTED /* GIF image file format */
#define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */
#undef RLE_SUPPORTED /* Utah RLE image file format */
#define TARGA_SUPPORTED /* Targa image file format */ #define TWO_FILE_COMMANDLINE /* optional */
#define USE_SETMODE /* Microsoft has setmode() */
#undef NEED_SIGNAL_CATCHER
#undef DONT_USE_B_MODE
#undef PROGRESS_REPORT /* optional */ #endif /* JPEG_CJPEG_DJPEG */
|
bass15
高階會員 發表:24 回覆:171 積分:119 註冊:2003-10-27 發送簡訊給我 |
|
dullvictory
一般會員 發表:5 回覆:2 積分:1 註冊:2005-08-16 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |