Page 1 of 1

Just installed and having problems RESOLVED

Posted: Thu Apr 27, 2006 6:34 pm
by Mixael
I just installed wxDev-C++, and was following the wxWidgets Minimal tutorial at http://www.upcase.de/wxDevCpp_tutorial/ ... nimal.html. After selecting a new project ->wxWidgets Frame, I tried to compile (the tut says it should compile and run at this point without errors). Following is what I get for errors:

Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Finding dependencies for file: C:\Dev-Cpp\..\introcpp\Project1Frm.cpp
Finding dependencies for file: C:\Dev-Cpp\Project1App.cpp
Executing make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
g++.exe -c ../introcpp/Project1Frm.cpp -o ../introcpp/Project1Frm.obj -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/include/wx/msw" -I"C:/Dev-Cpp/include/wx/generic" -I"C:/Dev-Cpp/include/wx/animate" -I"C:/Dev-Cpp/include/wx/fl" -I"C:/Dev-Cpp/include/wx/gizmos" -I"C:/Dev-Cpp/include/wx/html" -I"C:/Dev-Cpp/include/wx/mmedia" -I"C:/Dev-Cpp/include/wx/net" -I"C:/Dev-Cpp/include/wx/ogl" -I"C:/Dev-Cpp/include/wx/plot" -I"C:/Dev-Cpp/include/wx/protocol" -I"C:/Dev-Cpp/include/wx/stc" -I"C:/Dev-Cpp/include/wx/svg" -I"C:/Dev-Cpp/include/wx/xml" -I"C:/Dev-Cpp/include/wx/xrc" -I"C:/Dev-Cpp/include/wx" -fno-rtti -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -ansi -fexpensive-optimizations -O3 -pg

In file included from C:/Dev-Cpp/include/wx/string.h:55,
from C:/Dev-Cpp/include/wx/memory.h:20,
from C:/Dev-Cpp/include/wx/object.h:25,
from C:/Dev-Cpp/include/wx/wx.h:16,
from ../introcpp/Project1Frm.h:18,
from ../introcpp/Project1Frm.cpp:10:

C:/Dev-Cpp/include/wx/buffer.h: In constructor `wxCharBuffer::wxCharBuffer(const char*)':
C:/Dev-Cpp/include/wx/buffer.h:96: error: `strdup' undeclared (first use this function)
C:/Dev-Cpp/include/wx/buffer.h:96: error: (Each undeclared identifier is reported only once for each function it appears in.)

C:/Dev-Cpp/include/wx/buffer.h: In member function `wxCharBuffer& wxCharBuffer::operator=(const char*)':
C:/Dev-Cpp/include/wx/buffer.h:96: error: `strdup' undeclared (first use this function)
C:/Dev-Cpp/include/wx/buffer.h: In constructor `wxWCharBuffer::wxWCharBuffer(const wchar_t*)':
C:/Dev-Cpp/include/wx/buffer.h:100: error: `_wcsdup' undeclared (first use this function)
C:/Dev-Cpp/include/wx/buffer.h: In member function `wxWCharBuffer& wxWCharBuffer::operator=(const wchar_t*)':
C:/Dev-Cpp/include/wx/buffer.h:100: error: `_wcsdup' undeclared (first use this function)

In file included from C:/Dev-Cpp/include/wx/memory.h:20,
from C:/Dev-Cpp/include/wx/object.h:25,
from C:/Dev-Cpp/include/wx/wx.h:16,
from ../introcpp/Project1Frm.h:18,
from ../introcpp/Project1Frm.cpp:10:
C:/Dev-Cpp/include/wx/string.h: In function `int Stricmp(const char*, const char*)':
C:/Dev-Cpp/include/wx/string.h:135: error: `strcasecmp' undeclared (first use this function)

In file included from C:/Dev-Cpp/include/wx/wx.h:18,
from ../introcpp/Project1Frm.h:18,
from ../introcpp/Project1Frm.cpp:10:
C:/Dev-Cpp/include/wx/list.h: In constructor `wxListKey::wxListKey(const wxChar*)':
C:/Dev-Cpp/include/wx/list.h:359: error: `strdup' undeclared (first use this function)
C:/Dev-Cpp/include/wx/list.h: In constructor `wxListKey::wxListKey(const wxString&)':
C:/Dev-Cpp/include/wx/list.h:361: error: `strdup' undeclared (first use this function)

make.exe: *** [../introcpp/Project1Frm.obj] Error 1

Execution terminated

Now what do I do?

Mixael

EDIT:
It turns out that my old Dev-C++ folder must have still had some stuff in it. I uninstalled wxDevC++, manually deleted the folder, and reinstalled and all is good now.

Thanks anyway!