-
-
未解决
请教一个C++的编译错误
-
发表于:
2021-4-11 17:16
4318
-
#if !defined(_UNICODE) && !defined(UNICODE)
#define _UNICODE USED
#define UNICODE USED
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>
#include <tchar.h>
#if !defined(WIN32) && !defined(WIN32)
#error Only run on windows system
#endif
#if defined(_MSC_VER)
#include <Gdiplus.h>
#pragma comment(lib, "Gdi32.lib")
#pragma comment(lib, "Gdiplus.lib")
#pragma comment(lib, "Ole32.lib")
#else
#include <gdiplus\gdiplus.h>
#ifndef bool
#include <stdbool.h>
#endif
#endif
static const TCHAR IMAGE_TYPE[] = {_T("image/bmp"), _T("image/jpeg"), _T("image/gif"), _T("image/tiff"), _T("image/png"), NULL};
static const TCHAR IMAGE_SUFFIX[] = {_T(".bmp"), _T(".jpg"), _T(".gif"), _T(".tif"), _T(".png"), NULL};
==========================
g++ -c ex01.cpp -municode
编译报错啊,编译环境是gcc 8.3的32位环境。
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!