Guidance Forums / wxWidgets (wxWindows) in C++ / Too many errors! - Need Help.

Search 搜索
Home Home

Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Too many errors! - Need Help.
Posted by: Katspau 2004-07-19 04:36:11

Hi again, all,
   I'm still trying to figure out why I'm getting these compile errors when trying to compile wxWidgets code samples (only applies to Widgets). I am using Dev C++ 5.0 with the DevPak2.5.1 and Imglib-2 (from upCASE's site). As far as I can tell, I have followed everyones instructions to the letter and have all the necessary flags correctly set and all appropriate paths defined.
   After spending the last few days tracing the errors I'v narrowed the field to the following list of types:

   1) warning: ISO C++ does not support `long long'
   2) `strdup' undeclared (first use this function)
   3) At global scope: syntax error before `=' token
   4) warning: ISO C++ forbids declaration of `off_t' with no type
   5) `off_t' declared as a `virtual' field
   6) parse error before `(' token
   7) declaration of `int wxStreamBase::off_t'
   8) conflicts with previous declaration `int wxStreamBase::off_t'
   9) duplicate member `wxStreamBase::off_t'

   There are multiple versions of each of these referenced to different header files. I find it very confusing that I get these errors (especialy the syntax/parse type) since the system obviously works well for so many people.
   I've tried the suggested fixes for similar problems that others have posted (haven't seen any that exactly matched) but no help. If anyone could point my cross-eyed gaze at what is probably an obvious solution I would be very greatful!
   Compile Log excerpts -

...   Compiler: Default compiler
Building Makefile: "D:\C++\C++Projects\"
Executing  make...
make.exe -f "D:\C++\C++Projects\" all
g++.exe -c main.cpp -o main.o -I"D:/C++/Dev-Cpp/include/c++"  -I"D:/C++/Dev-Cpp/include/c++/mingw32"  -I"D:/C++/Dev-Cpp/include/c++/backward"  -I"D:/C++/Dev-Cpp/include" -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -DHAVE_W32API_H  -D__WXMSW__ -D__WINDOWS__ -Wall -fno-pcc-struct-return -O2 -Os -fno-rtti -fno-exceptions   -ansi -pedantic -Wall In file included from D:/C++/Dev-Cpp/include/wx/wxchar.h:81,
                 from D:/C++/Dev-Cpp/include/wx/debug.h:18,
                 from D:/C++/Dev-Cpp/include/wx/defs.h:403,
                 from D:/C++/Dev-Cpp/include/wx/wxprec.h:13,
                 from main.cpp:21:

...   D:/C++/Dev-Cpp/include/stdlib.h:481: warning: ISO C++ does not support `long long'

...   D:/C++/Dev-Cpp/include/wx/buffer.h: In constructor
     `wxCharBuffer::wxCharBuffer(const char*)':
      D:/C++/Dev-Cpp/include/wx/buffer.h:98: `strdup' undeclared (first use this
...   D:/C++/Dev-Cpp/include/wx/filefn.h: At global scope:
      D:/C++/Dev-Cpp/include/wx/filefn.h:51: syntax error before `=' token In   file included from D:/C++/Dev-Cpp/include/wx/utils.h:29,
...   D:/C++/Dev-Cpp/include/wx/stream.h: At global scope:
      D:/C++/Dev-Cpp/include/wx/stream.h:94: warning: ISO C++ forbids declaration of `off_t' with no type

...   D:/C++/Dev-Cpp/include/wx/stream.h:94: `off_t' declared as a `virtual' field
      D:/C++/Dev-Cpp/include/wx/stream.h:94: parse error before `(' token
      D:/C++/Dev-Cpp/include/wx/stream.h:95: declaration of `int wxStreamBase::off_t'
      D:/C++/Dev-Cpp/include/wx/stream.h:94: conflicts with previous declaration `int wxStreamBase::off_t'
      D:/C++/Dev-Cpp/include/wx/stream.h:95: duplicate member `wxStreamBase::off_t'  
It is not possible for the human mind to know nothingness for the act of apprehension makes it something!
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
© Thu 2024-5-30  Guidance Laboratory Inc. Hits:0