OK, your problem comes form
#if defined(WIN32) && !defined(AXIS2_SKIP_INT_TYPEDEFS)
You are on Windows, but you are not using VC.
Can you please add -DAXIS2_SKIP_INT_TYPEDEFS=1 to your compilation and
see what the outcome is?
Thanks,
Samisa...
Andreas Karseras wrote:
Thanks for your response.
Compiling the echo service gives similar errors...
D:/axis2c/include/axutil_utils_defines.h:37: error: syntax error before
"uint8_t"
D:/axis2c/include/axutil_utils_defines.h:37: warning: type defaults to `int' in
declaration of `uint8_t'
D:/axis2c/include/axutil_utils_defines.h:37: warning: data definition has no
type or storage class
The includes 'seem' ok - any suggestion which system includes I should be
looking at ?
My guess would be stdint.h but this is in.
----- Original Message ----
From: Samisa Abeysinghe <[EMAIL PROTECTED]>
To: Apache AXIS C User List <[email protected]>
Sent: Thursday, May 15, 2008 2:19:04 PM
Subject: Re: hello_svc.c Example Compile Problem
To me it looks as if it cannot locate some of the headers, some system
headers.
Can you double check the includes please?
Also, does echo work for you? If so, you can try and compile echo
service and look for the compile options used in there.
Thanks,
Samisa...
Andreas Karseras wrote:
Hi,
I am seeing a problem when compiling the hello_svc.c source file from the
Axis2/C Manual with release 1.4.0.
The hello.c compiles without a problem.
The problem appears to concern axutil_utils_defines.h - an example of the
errors and warning are as follows:-
D:/axis2c/include/axutil_utils_defines.h:37: error: syntax error before
"uint8_t"
D:/axis2c/include/axutil_utils_defines.h:37: warning: type defaults to `int' in
declaration of `uint8_t'
D:/axis2c/include/axutil_utils_defines.h:37: warning: data definition has no
type or storage class
The iconv.dll, zlib1.dll and libxml2.dll libraries have all been downloaded and
placed in axis2c\lib.
The Axis server successfully starts when I issue the axis2_http_server.exe
command.
Any suggestions on what I'm doing wrong ?
Andy
For completeness, I have attached the complete compiler output below.
**** Build of configuration Debug for project C++ ****
**** Internal Builder is used for build ****
gcc
-ID:\MinGW\include -ID:\MinGW\lib -ID:\axis2c\lib -ID:\axis2c\include
-O0 -g3 -Wall -c -fmessage-length=0 -v -ohello_svc.o ..\hello_svc.c
Reading specs from D:/MinGW/bin/../lib/gcc/mingw32/3.4.5/specs
Configured
with: ../gcc-3.4.5-20060117-3/configure --with-gcc --with-gnu-ld
--with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw
--enable-threads --disable-nls
--enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry
--disable-shared --enable-sjlj-exceptions --enable-libgcj
--disable-java-awt --without-x --enable-java-gc=boehm
--disable-libgcj-debug --enable-interpreter
--enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw-vista special r3)
D:/MinGW/bin/../libexec/gcc/mingw32/3.4.5/cc1.exe
-quiet -v -ID:\MinGW\include -ID:\MinGW\lib -ID:\axis2c\lib
-ID:\axis2c\include -iprefix D:\MinGW\bin/../lib/gcc/mingw32/3.4.5/ -dD
..\hello_svc.c -quiet -dumpbase hello_svc.c -auxbase-strip hello_svc.o
-g3 -O0 -Wall -version -fmessage-length=0 -o
D:\Profiles\KARSERAS\LOCALS~1\Temp/ccKuMzQi.s
ignoring nonexistent directory
"D:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../mingw32/include"
ignoring nonexistent directory
"/mingw/lib/gcc/mingw32/3.4.5/../../../../mingw32/include"
#include "..." search starts here:
#include <...> search starts here:
D:/MinGW/include
D:/MinGW/lib
D:/axis2c/lib
D:/axis2c/include
D:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include
D:/MinGW/bin/../lib/gcc/mingw32/3.4.5/include
/mingw/lib/gcc/mingw32/3.4.5/../../../../include
/mingw/include
/mingw/lib/gcc/mingw32/3.4.5/include
/mingw/include
End of search list.
GNU C version 3.4.5 (mingw-vista special r3) (mingw32)
compiled by GNU C version 3.4.5 (mingw-vista special r3).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
In file included from D:/axis2c/include/axutil_allocator.h:26,
from D:/axis2c/include/axutil_env.h:27,
from D:/axis2c/include/axiom_node.h:39,
from D:/axis2c/include/axis2_svc_skeleton.h:41,
from ..\hello_svc.c:16:
D:/axis2c/include/axutil_utils_defines.h:37: error: syntax error before
"uint8_t"
D:/axis2c/include/axutil_utils_defines.h:37: warning: type defaults to `int' in
declaration of `uint8_t'
D:/axis2c/include/axutil_utils_defines.h:37: warning: data definition has no
type or storage class
D:/axis2c/include/axutil_utils_defines.h:38: error: syntax error before "int8_t"
D:/axis2c/include/axutil_utils_defines.h:38: warning: type defaults to `int' in
declaration of `int8_t'
D:/axis2c/include/axutil_utils_defines.h:38: warning: data definition has no
type or storage class
D:/axis2c/include/axutil_utils_defines.h:39: error: syntax error before
"uint16_t"
D:/axis2c/include/axutil_utils_defines.h:39: warning: type defaults to `int' in
declaration of `uint16_t'
D:/axis2c/include/axutil_utils_defines.h:39: warning: data definition has no
type or storage class
D:/axis2c/include/axutil_utils_defines.h:40: error: syntax error before
"int16_t"
D:/axis2c/include/axutil_utils_defines.h:40: warning: type defaults to `int' in
declaration of `int16_t'
D:/axis2c/include/axutil_utils_defines.h:40: warning: data definition has no
type or storage class
D:/axis2c/include/axutil_utils_defines.h:41: error: syntax error before
"uint32_t"
D:/axis2c/include/axutil_utils_defines.h:41: warning: type defaults to `int' in
declaration of `uint32_t'
D:/axis2c/include/axutil_utils_defines.h:41: warning: data definition has no
type or storage class
D:/axis2c/include/axutil_utils_defines.h:42: error: syntax error before
"int32_t"
D:/axis2c/include/axutil_utils_defines.h:42: warning: type defaults to `int' in
declaration of `int32_t'
D:/axis2c/include/axutil_utils_defines.h:42: warning: data definition has no
type or storage class
D:/axis2c/include/axutil_utils_defines.h:43: error: syntax error before
"uint64_t"
D:/axis2c/include/axutil_utils_defines.h:43: warning: type defaults to `int' in
declaration of `uint64_t'
D:/axis2c/include/axutil_utils_defines.h:43: warning: data definition has no
type or storage class
D:/axis2c/include/axutil_utils_defines.h:44: error: syntax error before
"int64_t"
D:/axis2c/include/axutil_utils_defines.h:44: warning: type defaults to `int' in
declaration of `int64_t'
D:/axis2c/include/axutil_utils_defines.h:44: warning: data definition has no
type or storage class
Build error occurred, build is stopped
Time consumed: 1673 ms.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG.
Version: 8.0.100 / Virus Database: 269.23.16/1434 - Release Date: 5/15/2008 7:24 AM
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG.
Version: 8.0.100 / Virus Database: 269.23.16/1434 - Release Date: 5/15/2008 7:24 AM
--
Samisa Abeysinghe
Director, Engineering; WSO2 Inc.
http://www.wso2.com/ - "The Open Source SOA Company"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]