axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Uthaiyashankar <shan...@wso2.com>
Subject Re: Building under windows
Date Mon, 04 Aug 2008 13:29:18 GMT

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: axis-c-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message