mingw32 cross compile _stricmp error


I am trying to use mingw32 to cross-compile my program so it runs on 
windows.  I am using debian linux, so I have the debian mingw32 package 
installed, and I've managed to get the "minimal" sample that comes with 
wxWindows compiling as a working windows executable, so something is at 
least partly right.

But when I try to compile my real code, I get the following error:

/usr/include/wx/string.h: In member function `int wxString::CmpNoCase(const
* wxChar*) const':
* /usr/include/wx/string.h:644: `_stricmp' undeclared (first use this 

and a similar error for `_strdup'.

I don't know what to do here.
Can anyone suggest what the problem is and how to fix it?

Thanks very much,

Helen Faulkner.

Please read http://www.wxwindows.org/mlhowto.htm before posting.

To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wx-users-help@lists.wxwindows.org

9/9/2003 11:31:47 AM
comp.soft-sys.wxwindows 21076 articles. 0 followers. Post Follow

1 Replies

Similar Articles

[PageSpeed] 55

On Tue, 09 Sep 2003 12:31:35 +0100 Helen Faulkner <helen_ml_faulkner@yahoo.co.uk> wrote:

HF> /usr/include/wx/string.h: In member function `int wxString::CmpNoCase(const
HF> * wxChar*) const':
HF> * /usr/include/wx/string.h:644: `_stricmp' undeclared (first use this 
HF> function)

 _stricmp must be available in the Windows (mingw32) headers, isn't it? If
the minimal sample (which surely does include wx/string.h) compiles and
your code doesn't, you should compare their compiler settings, they must be


Please read http://www.wxwindows.org/mlhowto.htm before posting.

To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wx-users-help@lists.wxwindows.org

9/10/2003 5:09:52 PM

Similar Artilces:

Cross-compiling error when compiling 2.6.1...
I come across the following error: checking for chflags... configure: error: cannot run test program while cross compiling See `config.log' for more details. make-3.81[1]: *** [/nobackup/garrcoop/python_upgrade/contrib/python/obj-mips32/Makefile] Error 1 make-3.81[1]: Leaving directory `/nobackup/garrcoop/python_upgrade' make-3.81: *** [all] Error 2 The blurb from configure that does this test says: # On Tru64, chflags seems to be present, but calling it will # exit Python Basically this testcase (while valid for Tru64) doesn't work with many cross-compilation environments. Cou...

[tao-users] tao_ifr from IFR_Service in a ARM9 cross compilation error to compile
--00504501416d53702a047cdffaf1 Content-Type: text/plain; charset=ISO-8859-1 ACE VERSION: 5.5a - 5.6a and 5.7.5 TAO VERSION: 1.5a - 1.6a and 1.7.5 HOST MACHINE and OPERATING SYSTEM: PC Linux Debian Lenny 2.6.26-2-486 TARGET MACHINE and OPERATING SYSTEM: ARM-linux-v5EJl 2.4.20-celf3 HOST COMPILER NAME AND VERSION (AND PATCHLEVEL): GCC-3.3.2 glibc-2.3.2 TARGET COMPILER NAME AND VERSION (AND PATCHLEVEL): ARM-LINUX gcc-3.3.2-glibc-2.3.2 CONTENTS OF $ACE_ROOT/ace/config.h: config-linux.h CONTENTS OF $ACE_ROOT/include/makeinclude/platform_macros.GNU: pl...

Error compiling GNUPLOT 4.2.0 with MINGW32 GCC compiler
I've run the following configure on a fresh install of the 4.2.0 source code using the DEV-CPP version of mingw32 gcc. The configure exits with return code 0. $ ./configure CXX=/cygdrive/d/ProgramFiles/Dev-Cpp/bin/gcc.exe CC=/ cygdrive/d/ProgramFiles/Dev-Cpp/bin/gcc.exe --without-readline -- includedir=/cygdrive/d/ProgramFiles/Cygwin/usr/include/ --libdir=/ cygdrive/d/ProgramFiles/Dev-Cpp/lib/ --without-PACKAGE --without-lisp- files --without-row-help --without-tutorial I then run mingw32-make on the resulting Makefile and get the following output $ mingw32-make.exe d:/P...

cross compilation error
/../include/krb5 -I./../../include/krb5 -I. -I. -I/opt/mipsel-linux/mipsel-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2/include/c++/3.3.4/ -I/opt/mipsel-linux/mipsel-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2//mipsel-unknown-linux-gnu/include/ -I/opt/mipsel-linux/mipsel-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2//mipsel-unknown-linux-gnu/sys-include -I/home/vijay/httpd-2.0.52/srclib/apr-util/xml/expat/lib/ -g -O2 -Wall -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion -Wshadow -pedantic -pthread -c threads.c -o threads.so.o && mv -f threads.so.o threads.so In file included from threads....

cross compiling with mingw32 on linux
ACE VERSION: 5.5.1 HOST MACHINE and OPERATING SYSTEM: suse 10.1 TARGET MACHINE and OPERATING SYSTEM, if different from HOST: gcc (GCC) 4.1.0 (SUSE Linux) and i586-mingw32msvc-c++ (GCC) 3.4.2 (mingw-special) DOES THE PROBLEM AFFECT: COMPILATION? No LINKING? No EXECUTION? No OTHER (please specify)? external building of application SYNOPSIS: error with some system includes DESCRIPTION: Hi all, I'm trying to build a win32 version of a working application I made on linux. ...

Errors when cross-compiling the kernel
Trying to cross-compile the Raspberry Pi kernel on a Debian 7 virtual PC. I've got quite a way through the process, and it seems to start compiling, but I'm getting the following error: HOSTLD scripts/genksyms/genksyms CC scripts/mod/empty.o /home/david/kern/tools/arm-bcm2708/arm-bcm2708-linux-gnueabi/bin/../lib/gcc/arm-bcm2708-linux-gnueabi/4.7.1/../../../../arm-bcm2708-linux-gnueabi/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory Any ideas? I can't find libz.so anywhere.... Thanks,...

compiling error related to wxWindows
Hi,I'm trying to compile xmule 1.4.2 over a Mandrake Linux 9.1, it requires wxwindows and I've compiled wxWindows 2.4.1 as requested with (I think) no problems. xmule goes well through the "configure" script, but when running "make", after a lot of correct compiling (when linking I guess) it throws out a lot of: [archive throwing the error]: undefined reference to 'wxXmlResource::Get()' (or wxXmlResource::whatever) It's strange because the same compilation with same files went perfectly on my old Mandrake 8.1 ... I guess must some probl...

Error 8 Compilation Error. File permission error or DMA hardware error detected
I just upgraded my Labview code to Labview 8.5 from LV8.2.1 Then I tried to compile&nbsp;my code to get an .exe file I keep getting the following error, &nbsp; Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference: Error 8 occurred at Write to Text File in AB_Engine_Update_INI_Header.vi-&gt;AB_Application.lvclass:Create_INI_File.vi-&gt;AB_Application.lvclass:Copy_Files.vi-&gt;AB_Build.lvclass:Build.vi-&gt;AB_EXE.lvclass:Build.vi-&gt;AB_Build.lvclass:Build_from_Wizard.vi-&gt;AB_UI_FR...

glibc ARM cross compile error
I am trying to compile glibc-2.5 for ARM based board. But I am getting errors while configuring it. Please check and give your inputs for resolving this. configure command : $ ../glibc-2.5/configure --prefix=/mnt/new/Mars/glibc_HQ_test/GLIBC/ install/ --with-__thread --enable-kernel=2.6.11 --enable-shared I have also tried it with --host and --build options. But getting the same error. Error - "configure:7592: error: cannot compute sizeof (long double), 77" I am sending the complete config.log ----------------------------------------- This file contains any messages produce...

Error while cross compiling libcurl library
Hi, I am using openwrt white russian SDK to cross compile my c code.The code uses curl library so I added libcurl.so in the lib folder of the SDK. I think this is a problem of version mismatch. Because I read in one of group posts that '' represents hidden dependencies in linux and here for example I an also getting undefined reference to `abort@GLIBC_2.0' Now when I cross compile the c code it gives error /home/inovationlab/test2/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/bin/../lib/gcc/mipsel-linux-uclibc/3.4.4/../../../../mipsel-linux-uclibc/lib/libcurl.so: undef...

bind 9 cross compilation error
Hi all, I am a newbie to bind9. I have started cross compiling bind9 for my target arm-linux platform and I keep getting some errors while configuring bind9. ../configure --target=arm-linux --host=i686-pc-linux-gnu --prefix=/home/cm-x270/cmrootfs/ BUILD_CC=/scratchbox/compilers/arm-gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. ..... checking for random device... /dev/random checking for /dev/random... configure: error: cannot c...

wxWindows compile with gtk resort error?
im installing wxWindows/wxGTK this is what i have in my machine: [RH7.3, gtk2-2.0.2-4, gtk+-1.2.10-15, glib,pango,atk] when i configure wxwindows i got this error: checking for XML_ParserCreate in -lexpat... yes checking mspack.h usability... no checking mspack.h presence... no checking for mspack.h... no checking for GTK+ version... checking for gtk-config... /usr/bin/gtk-config checking for GTK - version >= 1.2.7... no *** Could not run GTK test program, checking why... *** The test program failed to compile or link. See the file config.log for the *** exact error that occu...

[tao-users] Cross compilation error
ACE VERSION: ACE version 6.0.0 TAO version 2.0.0 ACE version 5.7.0 TAO version 1.7.0 HOST MACHINE and OPERATING SYSTEM: Desk Top PC Dual Core Processor: Intel(R) Core(TM)2 Duo CPU E4400 @ 2.00GHz Memory: 1.9 GiB Ubuntu Linux 8.04 (hardy) TARGET MACHINE and OPERATING SYSTEM, if different from HOST: MicroBlaze soft core arch inside Virtex 6 FPGA from Xilinx Linux Version 2.6.37-rc4 COMPILER NAME AND VERSION (AND PATCHLEVEL): Cross Toolchain powerpc-microblaze-unknown-linux-gnu 4.1.2 Using built-in specs. Target: microblaz...

Cross compile with DSP compiler
Am i being naive. I'm using the 3.0 compiler to produce c code from a function I have written. I want to cross compile this using the visualDSP compiler and make the function available to the DSP application. Should this be possible. I've looked at the c code that the compiler produces (mcc -t -L C foo) and while I've done some c programming im no expert. Any suggestions as to how I call the function from the application. I'm very confused over how I should call and pass the arguments to the c code the compiler produces. Any help greatly appreciated ! Unfortunately, what you...

Web resources about - mingw32 cross compile _stricmp error - comp.soft-sys.wxwindows

Resources last updated: 1/29/2016 10:35:10 AM