[ wxwindows-Bugs-1646917 ] Error compiling wxWidgets 2.8.0 with DMC 8.49

SourceForge.net noreply at sourceforge.net
Mon Jan 29 02:32:15 PST 2007


Bugs item #1646917, was opened at 2007-01-29 11:32
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=1646917&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: Build -- windows
Group: Must fix
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Borja Torres (torresborja)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error compiling wxWidgets 2.8.0 with DMC 8.49

Initial Comment:
When I compile wxWidgets v2.8.0 with Digital Mars C++ v8.49 with UNICODE and ODBC:
smake -f makefile.dms BUILD=debug UNICODE=1 USE_ODBC=1

I get this errors:

        dmc -mn -c -cpp -odmc_mswud\odbclib_db.obj -g -o+none     -D_WIN32_WINNT
=0x0400 -D__WXMSW__  -D__WXDEBUG__    -D_UNICODE   -I..\..\lib\dmc_lib\mswud -I.
.\..\include -w- -I..\..\src\tiff -I..\..\src\jpeg -I..\..\src\png -I..\..\src\z
lib  -I..\..\src\regex -I..\..\src\expat\lib -DwxUSE_GUI=0  -Ar -Ae -H -HP99 -HO
- -HHdmc_mswud\pch_wxprec_odbclib.sym   ..\..\src\common\db.cpp
                        WXSIZEOF(outConnectBuffer), &outConnectBufferLen, SQL_DR
IVER_COMPLETE );

               ^
..\..\src\common\db.cpp(861) : Error: need explicit cast for function parameter
3 to get
from: wchar_t *
to  : unsigned char *
                         (SQLTCHAR FAR *) authStr.c_str(), SQL_NTS);
                                                                   ^
..\..\src\common\db.cpp(906) : Error: need explicit cast for function parameter
2 to get
from: wchar_t *
to  : unsigned char *
                            WXSIZEOF(outConnectBuffer), &outConnectBufferLen, SQ
L_DRIVER_COMPLETE);

                  ^
..\..\src\common\db.cpp(966) : Error: need explicit cast for function parameter
3 to get
from: wchar_t *
to  : unsigned char *
                             (SQLTCHAR FAR *) authStr.c_str(), SQL_NTS);
                                                                       ^
..\..\src\common\db.cpp(981) : Error: need explicit cast for function parameter
2 to get
from: wchar_t *
to  : unsigned char *
    if (SQLGetData(hstmt, 1, SQL_C_WXCHAR, typeName, sizeof(typeName), &cbRet) !
= SQL_SUCCESS)
                                         ^
..\..\src\common\db.cpp(1664) : Error: undefined identifier 'SQL_C_WCHAR'
Fatal error: too many errors
--- errorlevel 1
SMAKE fatal error: command "dmc" returned with error code 1
Stopping.

====================================================
With MinGw32 and Visual Express 2005, wxWidgets compiles, with DMC++ not compile.

Thanks

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

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




More information about the wx-dev mailing list