locale.h

Nicholas Piper <[email protected]>
Newsgroups gmane.comp.finance.libofx.devel
Message-ID <[email protected]>
To get 0.6.4 to compile I had to add "#include <locale.h>" to the top
of ofx_utilities.cpp. locale.h doesn't seem to be mentioned anywhere
without that?

(find -type f | xargs grep locale.h  gives nothing.)

I had to avoid this error:

make[2]: Entering directory `/tmp/libofx-0.6.4/lib'
source='ofx_utilities.cpp' object='ofx_utilities.lo' libtool=yes \
depfile='.deps/ofx_utilities.Plo' tmpdepfile='.deps/ofx_utilities.TPlo' \
depmode=gcc /bin/sh ../config/depcomp \
/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..  -I. -I../inc -I/usr/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/usr/local/share/libofx/dtd/\"   -g -O2 -c -o ofx_utilities.lo `test -f 'ofx_utilities.cpp' || echo './'`ofx_utilities.cpp
rm -f .libs/ofx_utilities.lo
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../inc -I/usr/local/include/OpenSP -DMAKEFILE_DTD_PATH=\"/usr/local/share/libofx/dtd/\" -g -O2 -c ofx_utilities.cpp -Wp,-MD,.deps/ofx_utilities.TPlo  -fPIC -DPIC -o .libs/ofx_utilities.lo
ofx_utilities.cpp: In function `double ofxamount_to_double(basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> >)':
ofx_utilities.cpp:151: implicit declaration of function `int localeconv(...)'
ofx_utilities.cpp:151: base operand of `->' is not a pointer
make[2]: *** [ofx_utilities.lo] Error 1
make[2]: Leaving directory `/tmp/libofx-0.6.4/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/libofx-0.6.4'
make: *** [all] Error 2
nicholas@piamox7:/tmp/libofx-0.6.4$ 

(note the "implicit declaration of function `int localeconv(...)'").

Using gcc version 2.95.3 20010315 (release), no linux distro--rolled
my own (kinda).

 Nick

-- 
Part 3 MEng Cybernetics; Reading, UK       http://www.nickpiper.co.uk/
GPG Encrypted mail welcome!                             1024D/3ED8B27F
Choose life. Be Vegan :-) Please reduce needless cruelty + suffering !


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.