You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Háber János <bo...@dravanet.hu> on 2004/12/25 04:19:06 UTC

Cross Compiling

Hi!

I try to cross compile the axis-c 1.4 (create windows executable in linux with 
mingw) because I have a little problem:

/bin/sh ../../../libtool --mode=compile i386-mingw32msvc-c++ -DHAVE_CONFIG_H 
-I. -I. -I../../.. -I../../../include -Wall -Wshadow -DENABLE_AXISTRACE -Wall 
-Wshadow -DENABLE_AXISTRACE  -g -O2 -c -o Buffer.lo `test -f 'Buffer.cpp' || 
echo './'`Buffer.cpp
 i386-mingw32msvc-c++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include 
-Wall -Wshadow -DENABLE_AXISTRACE -Wall -Wshadow -DENABLE_AXISTRACE -g -O2 -c 
Buffer.cpp -MT Buffer.lo -MD -MP -MF .deps/Buffer.TPlo  -DDLL_EXPORT -DPIC 
-o .libs/Buffer.o
In file included from Buffer.hpp:26,
                 from Buffer.cpp:23:
XmlPullParserException.hpp:31:7: warning: no newline at end of file
In file included from Buffer.cpp:23:
Buffer.hpp: In constructor `Buffer<T>::Buffer(int)':
Buffer.hpp:56: error: there are no arguments to `malloc' that depend on a 
template parameter, so a declaration of `malloc' must be available
Buffer.hpp:56: error: (if you use `-fpermissive', G++ will accept your code, 
but allowing the use of an undeclared name is deprecated)
make[4]: *** [Buffer.lo] Error 1
make[4]: Leaving directory 
`/home/mingw/axis/axis-c-src-1-4-linux/src/xml/tspp'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/mingw/axis/axis-c-src-1-4-linux/src/xml'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mingw/axis/axis-c-src-1-4-linux/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mingw/axis/axis-c-src-1-4-linux'
make: *** [all] Error 2

Can anybody tell me about how can I solve this?

Thnx.
Moo Cow
-- 
Háber János             mailto:boci@dravanet.hu
ICQ Uin:73963523        http://boci.eminens.hu

Public Key: http://boci.eminens.hu/boci.asc
Key Identifier: 0x4B9B919B
Key Server: wwwkeys.eu.pgp.net

Re: Cross Compiling

Posted by Roshan Weerasuriya <ro...@opensource.lk>.
hi Moo Cow,

I am not sure whether any one has tried cross compiling Axis C++ using
MinGW previously.

I compiled the lates CVS checkout in windows to verify whether this is a
problem with the CVS code itself, but the latest CVS code builds fine,
directly on Windows. So I think this is some thing to do with MinGW
configuration or someother reasone, but I am not sure. Any how for your
information I would like to say that the src builds fine directly on
windows (using VC++ 6). May be some one can put on light on this
problem.

Rgds,
Roshan

On Sat, 2004-12-25 at 09:19, Háber János wrote:
> Hi!
> 
> I try to cross compile the axis-c 1.4 (create windows executable in linux with 
> mingw) because I have a little problem:
> 
> /bin/sh ../../../libtool --mode=compile i386-mingw32msvc-c++ -DHAVE_CONFIG_H 
> -I. -I. -I../../.. -I../../../include -Wall -Wshadow -DENABLE_AXISTRACE -Wall 
> -Wshadow -DENABLE_AXISTRACE  -g -O2 -c -o Buffer.lo `test -f 'Buffer.cpp' || 
> echo './'`Buffer.cpp
>  i386-mingw32msvc-c++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include 
> -Wall -Wshadow -DENABLE_AXISTRACE -Wall -Wshadow -DENABLE_AXISTRACE -g -O2 -c 
> Buffer.cpp -MT Buffer.lo -MD -MP -MF .deps/Buffer.TPlo  -DDLL_EXPORT -DPIC 
> -o .libs/Buffer.o
> In file included from Buffer.hpp:26,
>                  from Buffer.cpp:23:
> XmlPullParserException.hpp:31:7: warning: no newline at end of file
> In file included from Buffer.cpp:23:
> Buffer.hpp: In constructor `Buffer<T>::Buffer(int)':
> Buffer.hpp:56: error: there are no arguments to `malloc' that depend on a 
> template parameter, so a declaration of `malloc' must be available
> Buffer.hpp:56: error: (if you use `-fpermissive', G++ will accept your code, 
> but allowing the use of an undeclared name is deprecated)
> make[4]: *** [Buffer.lo] Error 1
> make[4]: Leaving directory 
> `/home/mingw/axis/axis-c-src-1-4-linux/src/xml/tspp'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/home/mingw/axis/axis-c-src-1-4-linux/src/xml'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/mingw/axis/axis-c-src-1-4-linux/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/mingw/axis/axis-c-src-1-4-linux'
> make: *** [all] Error 2
> 
> Can anybody tell me about how can I solve this?
> 
> Thnx.
> Moo Cow