Re: [xml] cross compileing to win32 using mingw/gcc



On Tue, 2002-07-23 at 13:52, Bjorn Reese wrote:
Scott Peshak wrote:

Ok, I took care of that, and now trio.c isn't getting compiled.  but now
I'm getting errors about undefined references to vsnprintf in xmlHTML*

The idea of trio is that it provides the *snprintf functions if your
compiler/platform doesn't. If MinGW doesn't provide these functions
then obviously we need to get trio working with MinGW.

You mentioned that it "chokes"; could you be a little more specific?

yeah, here's the compiler output:

make[2]: Entering directory `/home/peshaks/gnome-xml'
/bin/sh ./libtool --mode=compile i386-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include
  -g -O2 -Wall -c trio.c
rm -f .libs/trio.lo
i386-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -g -O2 -Wall -Wp,-MD,.deps/trio.pp 
-c trio.c  -DDLL_EXPORT -DPIC -o .libs/trio.lo
In file included from trio.c:80:
/usr/local/cross-compile/lib/gcc-lib/i386-mingw32msvc/2.95.3-6/../../../../i386-mingw32msvc/include/ctype.h:138:
 parse error before `unsigned'
trio.c: In function `trio_printfv':
trio.c:3180: warning: `dummy' might be used uninitialized in this function
trio.c: In function `trio_fprintfv':
trio.c:3248: warning: `dummy' might be used uninitialized in this function
trio.c: In function `trio_dprintfv':
trio.c:3315: warning: `dummy' might be used uninitialized in this function
trio.c: In function `trio_sprintfv':
trio.c:3389: warning: `dummy' might be used uninitialized in this function
trio.c: In function `trio_snprintfv':
trio.c:3476: warning: `dummy' might be used uninitialized in this function
trio.c: In function `trio_printv_ref':
trio.c:4285: warning: `dummy' might be used uninitialized in this function
trio.c: In function `TrioReadNumber':
trio.c:4694: `x' undeclared (first use in this function)
trio.c:4694: (Each undeclared identifier is reported only once
trio.c:4694: for each function it appears in.)
trio.c: In function `trio_scanfv':
trio.c:5658: warning: `dummy' might be used uninitialized in this function
trio.c: In function `trio_fscanfv':
trio.c:5701: warning: `dummy' might be used uninitialized in this function
trio.c: In function `trio_dscanfv':
trio.c:5743: warning: `dummy' might be used uninitialized in this function
trio.c: In function `trio_sscanfv':
trio.c:5786: warning: `dummy' might be used uninitialized in this function
make[2]: *** [trio.lo] Error 1

Scott




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]