[ wxwindows-Bugs-1592935 ] wxchar.h not compilable with Borland C++

SourceForge.net noreply at sourceforge.net
Wed Nov 8 12:54:32 PST 2006


Bugs item #1592935, was opened at 2006-11-08 21:54
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1592935&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxMSW specific
Group: Fatal
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jérôme Martinez (zenitram)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxchar.h not compilable with Borland C++

Initial Comment:
I was using wxWidgets 2.7.1 with Borland C++ 2006.
When upgrading to 2.7.2, there are a lots of errors.

D:\Programmation\wxMSW-2.7.2\build\msw>make -f
makefile.bcc -DBUILD=release -DSHARED=0 -DUNICODE=1
-DMSLU=1 -DUSE_GUI=1 -DRUNTIME_LIBS=static -DMONOLITHIC=1
(...)
D:\Programmation\wxMSW-2.7.2\build\msw>bcc32 -q -c -P
-obcc_mswu\monolib_filefn.obj 
-IC:\PROGRA~1\Borland\BDS\4.0\Bin\.
.\include -v-   -O2 -tWM -D__WXMSW__         
-D_UNICODE -DwxUSE_UNICODE_MSLU=1   
-I..\..\lib\bcc_lib\mswu -I..\..\incl
ude -I..\..\src\tiff   -I..\..\src\jpeg -I..\..\src\png
-I..\..\src\zlib -I..\..\src\regex  
-I..\..\src\expat\lib -DwxU
SE_BASE=1 -Hu -H=bcc_mswu\wxprec_monolib.csm   -a8 -g0
  ..\..\src\common\filefn.cpp
..\..\src\common\filefn.cpp:
Error E2141 ..\..\include\wx/wxchar.h 338: Declaration
syntax error
Error E2238
C:\PROGRA~1\Borland\BDS\4.0\Bin\..\include\stdio.h 368:
Multiple declaration for 'FILE'
Error E2344 ..\..\include\wx/wxchar.h 338: Earlier
declaration of 'FILE'
Error E2238 C:\Program
Files\Borland\BDS\4.0\Include\dinkumware\iosfwd 254:
Multiple declaration for 'char_traits<wchar_
t>::int_type'
Error E2344 C:\Program
Files\Borland\BDS\4.0\Include\dinkumware\iosfwd 136:
Earlier declaration of 'char_traits<wchar_t>
::int_type'
Error E2238 C:\Program
Files\Borland\BDS\4.0\Include\dinkumware\iosfwd 260:
Multiple declaration for 'char_traits<wchar_
t>::assign(wchar_t &,const wchar_t &)'
(...)

The line 338 of wxchar.h is the problem:
        WXDLLIMPEXP_BASE FILE * wxMSLU__tfopen(const
wxChar *name, const wxChar *mode);

(note: if I replace "FILE" by "void", compilation is OK
for a while, but will stop when a function will want to
use wxMSLU__tfopen, I didn't succeed to understand why
"FILE" is a problem)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1592935&group_id=9863




More information about the wx-dev mailing list