Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Weird errors (or not?)

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Weird errors (or not?)
#3907
Posted by: KaReL 2004-04-24 02:16:17
Compiler: Default compiler
Building Makefile: "C:\C++ Programs\KaReLs0ft\Makefile.win"
Executing  make...
make.exe -f "C:\C++ Programs\KaReLs0ft\Makefile.win" all
g++.exe -c ras.cpp -o Compile/Intermediate/Dev-CPP/ras.o -I"C:/Dev-Cpp/include/c++"  -I"C:/Dev-Cpp/include/c++/mingw32"  -I"C:/Dev-Cpp/include/c++/backward"  -I"C:/Dev-Cpp/include"  -I"C:/Program Files/Coding/wxWidgets/include"  -I"C:/Program Files/Coding/wxWidgets/lib/gcc_lib/mswu" -D_X86_=1 -DWIN32 -D_WIN32 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -DSTRICT  -D__WXMSW__ -D__WINDOWS__ -fmessage-length=0 -Os -march=i386 -DNDEBUG -D_WINDOWS -DWINVER=0x0400 -DUNICODE -D_UNICODE -DTHREADSAFE=1   -fexpensive-optimizations -O3

In file included from SQLite/wxSQLite/KaReLs0ft_db.h:9,
                 from stdwx.h:62,
                 from ras.cpp:1:
SQLite/wxSQLite/wxsqlite.h: In member function `wxString wxSQLiteQueryBase::TField::AsString() const':
SQLite/wxSQLite/wxsqlite.h:116: error: operands to ?: have different types

SQLite/wxSQLite/wxsqlite.h: In member function `wxSQLiteQueryBase::TField::operator wxString() const':
SQLite/wxSQLite/wxsqlite.h:117: error: operands to ?: have different types

make.exe: *** [Compile/Intermediate/Dev-CPP/ras.o] Error 1

Execution terminated
Using: Dev-CPP with MinGW 3.3.3 (latest binaries at least)

115    // Return wxString
116    inline wxString     AsString()      const { return (m_szData!=NULL)?wxString(m_szData, wxConvUTF8):wxEmptyString; }
117    inline operator     wxString()      const { return (m_szData!=NULL)?wxString(m_szData, wxConvUTF8):wxEmptyString; }

So now is the question ;) How to solve this problems and even more important: why does it give errors?
------------------------
Website: www.KaReLs0ft.be
Message2. Re: Weird errors (or not?)
#3977
Posted by: 2004-04-30 21:40:30
hi,

maybe this will help:
http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?5:mss:46369:200404:lpphhdanjibngidehije

Seems as if wxWidgets developers got a similar problem. They fixed it not using ?
instaed of if ?!?

Achim
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥860.00 ·
 
 
¥900.00 ·
 
 
¥810.00 ·
 
 
¥317.00 ·
 
 
¥1,370.00 ·
 
 
¥660.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0