User forums > Using Code::Blocks
Does not recognize __stdcall?????
(1/1)
BigAngryDog:
C::B doesn't recognized __stdcall convention? No?
If so, how do I use it?
For example, the following generates an error when building a DLL:
--- Code: ---#define _DLL_CALL __stdcall(dllexport)
void _DLL_CALL get_url();
--- End code ---
sethjackson:
This is a Microsoft specific compiler extension. The problem is not with C::B. It may be a GCC (MinGW) problem.
http://www.google.com/search?hl=en&lr=&q=GCC+__stdcall&btnG=Search
BigAngryDog:
>The problem is not with C::B. It may be a GCC (MinGW) problem.
Nah! It's a "ME" problem.
OK, I'm an idiot. I should have typed:
#define _DLL_CALL __stdcall __declspec(dllexport)
not
#define _DLL_CALL __stdcall(dllexport)
Thanks for replying! :)
sethjackson:
--- Quote from: BigAngryDog on March 13, 2006, 03:54:26 am --->The problem is not with C::B. It may be a GCC (MinGW) problem.
Nah! It's a "ME" problem.
OK, I'm an idiot. I should have typed:
#define _DLL_CALL __stdcall __declspec(dllexport)
not
#define _DLL_CALL __stdcall(dllexport)
Thanks for replying! :)
--- End quote ---
Sure. :D
Navigation
[0] Message Index
Go to full version