cdecl 呼び出し規約に問題があります。
void Test1(char* str, ...) // ok
{}
void cdecl Test2(char* str, ...) // error: expected initializer before 'Test2'
{}
int main()
{}
コンパイラに cdecl 呼び出し規約を認識させるにはどうすればよいですか?
ありがとう!
プラットフォーム: Windows 7; MinGW; GCC 4.6.1
これらの関数は、ファイル FRAMEWRK.H の「Microsoft Excel Developer's Kit、バージョン 14」の一部であるため、変更できません。
///***************************************************************************
// File: FRAMEWRK.H
//
// Purpose: Header file for Framework library
//
// Platform: Microsoft Windows
//...
// From the Microsoft Excel Developer's Kit, Version 14
// Copyright (c) 1997 - 2010 Microsoft Corporation. All rights reserved.
///***************************************************************************
...
//
// Function prototypes
//
#ifdef __cplusplus
extern "C" {
#endif
void far cdecl debugPrintf(LPSTR lpFormat, ...);
LPSTR GetTempMemory(size_t cBytes);
void FreeAllTempMemory(void);
...