21.02.2010, 13:55
Hi Blefish,
I had a similar problem, I can imagine you are using the "hello world" template.
This has provided a very good template for me and has enabled me to add my plugin natives with very little changes. The only downside would be that it does not provide an example of callback implementation.
I encountered a small compiling problem similar to yours.
try making the following changes in "amx.h" to see they rectify your problem.
Comment out the following if directive
and replace it with this one;
Edit:
If this resolves the issue, would you kindly change the topic to something along the lines off, "alloca problem" for future reference.
I had a similar problem, I can imagine you are using the "hello world" template.
This has provided a very good template for me and has enabled me to add my plugin natives with very little changes. The only downside would be that it does not provide an example of callback implementation.
I encountered a small compiling problem similar to yours.
try making the following changes in "amx.h" to see they rectify your problem.
Comment out the following if directive
Code:
/*#if defined __WIN32__ || defined _WIN32 || defined WIN32 #if !defined alloca #define xalloca(n) _alloca(n) #endif #endif*/
Code:
#if HAVE_ALLOCA_H #include <alloca.h> #endif
If this resolves the issue, would you kindly change the topic to something along the lines off, "alloca problem" for future reference.