ivakyb / minini

Automatically exported from code.google.com/p/minini
Other
0 stars 0 forks source link

compile error with arm-linux-g++ 4.2.2 (from DENX ELDK) #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. unzip minIni_09 
2. arm-linux-g++ test.c minIni.c

What is the expected output? What do you see instead?

It should compile without errors, but I get the following

minIni.c: In function 'int getkeystring(FILE**, const TCHAR*, const TCHAR*, 
int, int, TCHAR*, int)':
minIni.c:243: error: invalid conversion from 'int' to 'quote_option'
minIni.c:243: error:   initializing argument 4 of 'TCHAR* save_strncpy(TCHAR*, 
const TCHAR*, size_t, quote_option)'

What version of the product are you using? On what operating system?

This is minIni_09 on Ubuntu Linux with DENX ELDK (gcc 4.2.2); the verbose 
version string is

Reading specs from /opt/eldk/usr/bin/../lib/gcc/arm-linux-gnueabi/4.2.2/specs
Target: arm-linux-gnueabi
Configured with: 
/opt/eldk/build/arm-2008-11-24/work/usr/src/denx/BUILD/crosstool-0.43/build/gcc-
4.2.2-glibc-20070515T2025-eldk/arm-linux-gnueabi/gcc-4.2.2/configure 
--target=arm-linux-gnueabi --host=i686-host_pc-linux-gnu 
--prefix=/var/tmp/eldk.ywMqKk/usr/crosstool/gcc-4.2.2-glibc-20070515T2025-eldk/a
rm-linux-gnueabi --disable-hosted-libstdcxx 
--with-headers=/var/tmp/eldk.ywMqKk/usr/crosstool/gcc-4.2.2-glibc-20070515T2025-
eldk/arm-linux-gnueabi/arm-linux-gnueabi/include 
--with-local-prefix=/var/tmp/eldk.ywMqKk/usr/crosstool/gcc-4.2.2-glibc-20070515T
2025-eldk/arm-linux-gnueabi/arm-linux-gnueabi --disable-nls 
--enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit 
--enable-languages=c,c++,java --enable-shared --enable-c99 --enable-long-long 
--without-x
Thread model: posix
gcc version 4.2.2

Please provide any additional information below.

The attached patch file removes the error.

Original issue reported on code.google.com by chris.gh...@gmail.com on 19 Jan 2011 at 3:11

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you. This error probably occurs with other C++ compilers, too.

Original comment by thiadmer...@gmail.com on 26 Jan 2011 at 2:23

GoogleCodeExporter commented 9 years ago
Corrected in the latest version

Original comment by thiadmer...@gmail.com on 28 Jan 2011 at 10:48