Ahh OK thank you, it works with gcc so I didn't think of that as a problem.
Uthaiyashankar wrote:
Hi,
This error occurs if you declare any variables in the middle of the
method. You have to declare all the variables at the start of the
method, before other statements/implementations. In cgi_main.c you
have declared a variable conf_ctx in line 95, where line 67 - 91 you
have other statements (implementations). You have to move variable
declaration to some lines before 67.
Regards,
Shankar
Nikola Tankovć wrote:
Hy all,
I'm trying to build my CGI executable under windows using cl.exe but
get the following errors
cgi_main.c(95) : error C2275: 'axis2_conf_ctx_t' : illegal use of
this type as an expression
C:\axis2c\include\axis2_conf_ctx.h(49) : see declaration of
'axis2_conf_ctx_t'
... and so on and on (similar errors)
Obviously included locations are fine, maybe the problem is that I'm
using MS Visual Studio 2008 so syntax is somewhat different for
typdef? Or did I forget some specific flag?
I'm using the command like this (as I saw in the makefile)
cl.exe /D "_DEBUG" /Od /Z7 /MDd /D "WIN32" /D "_WINDOWS" /D "_MBCS"
/D "AXIS2_DECLARE_EXPORT" /D "_CRT_SECURE_NO_DEPRECATE" /D
"_CRT_SECURE_NO_WARNINGS" /D "AXIS2_SVR_MULTI_THREADED" /W3 /wd4100
/MP10 /nologo /I %AXIS2C_HOME%include /c cgi_main.c
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]