Pelles C forum
C language => Beginner questions => Topic started by: whatsup on July 05, 2010, 12:22:57 PM
-
hey every body
1. i took this code from a header file,
and i get a syntex error on pellesc,
can someone tell me whats the problem and how to fix it.
#define WIN32
#define VSTCALLBACK __cdecl
typedef int VstInt32; ///< 32 bit integer type
typedef VstInt32 VstIntPtr;
struct AEffect;
typedef VstIntPtr (VSTCALLBACK *audioMasterCallback) (AEffect* effect, VstInt32 opcode, VstInt32 index, VstIntPtr value, void* ptr, float opt);
2. i have a cpp app, does pelles knows to compile cpp files ?
thanks in advanced.
-
2. i have a cpp app, does pelles knows to compile cpp files ?
Pelles C is ANSI C only, for C++ you need to use a different compiler.
-
ok, thanks.
-
For your first question, can you attach the complete project?
-
1. Perhaps change
struct AEffect;
to forward declaration
typedef struct AEffect AEffect;
-
thank you tim, that was it.
the project is C++, and now i understand that pellesc doesn't know this language,
so i gaveup from it for c++.
(maybe in the future i will be able to convert it to C)