1. wxEuphoria and ODBC

Matt,

I'm trying to wrap wxDb (wxDbConnectInf, etc.) and I can't for the life of me get it to compile. I recompiled the wxWidgets dll with the added USE_ODBC=1 flag, no problem. I can compile wxEuphoria with USE_ODBC=1, but when I add the following code to wxData.cpp:

#include "wx/db.h" 
 
object WXEUAPI new_wxDbConnectInf( object params ) 
{ 
	wxDbConnectInf *connectionInfo = new wxDbConnectInf(); 
	return BOX_INT( connectionInfo ); 
} 


I get the following error message:

C:\EUPHORIA\wxEuphoria\wxeu\trunk>wmake -f makefile.wat USE_ODBC=1 USE_THREADS=0 BUILD=release SHARED=1 RUNTIME_LIBS=static VENDOR=eu WXDIR=C:\EUPHORIA\wxWidgets-2.8.7 
Open Watcom Make Version 1.7 
Portions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved. 
Source code is available under the Sybase Open Watcom Public License. 
See http://www.openwatcom.org/ for details. 
        wpp386 -bt=nt -zq -fo=wat_dll\wxData.obj /bd /xs     -d__WXMSW__     -dwxNO_THREADS -dWXEUMSW -d_UNICODE i=C:\EUPHORIA\wxWidgets-2.8.7\lib\wat_dll\mswu -DWX_LIB_BUILD=12 -i=C:\EUPHORIA\wxWidgets-2.8.7\include -w0 -dWXUSINGDLL -i=C:\EUPHORIA\wxWidgets-2.8.7\lib\wat_dll\mswu /d1 -dNOPCH   .\wxData.cpp 
        wlink runtime windows=4.0 @wat_dll\wxeu.lbc @wat_dll\exports.lbc 
Error! E2028: near wxDbConnectInf::wxDbConnectInf() is an undefined reference 
file wat_dll\wxData.obj(C:\EUPHORIA\wxEuphoria\wxeu\trunk\wxData.cpp): undefined symbol near xDbConnectInf::wxDbConnectInf() 
Error(E42): Last command making (wat_dll\libwxeu.dll) returned a bad status 
Error(E02): Make execution terminated 


Looking at the wpp386 line, it looks like USE_ODBC is not getting passed to the compiler via the make file, yet I see it listed in there:

MAKEARGS = CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" & 
	CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" CPP="$(CPP)" SHARED="$(SHARED)" & 
	WXUNIV="$(WXUNIV)" UNICODE="$(UNICODE)" BUILD="$(BUILD)" & 
	DEBUG_INFO="$(DEBUG_INFO)" DEBUG_FLAG="$(DEBUG_FLAG)" & 
	MONOLITHIC="$(MONOLITHIC)" USE_GUI="$(USE_GUI)" USE_HTML="$(USE_HTML)" & 
	USE_XRC="$(USE_XRC)" USE_OPENGL="$(USE_OPENGL)" USE_ODBC="$(USE_ODBC)" & 
	USE_QA="$(USE_QA)" USE_EXCEPTIONS="$(USE_EXCEPTIONS)" & 
	USE_RTTI="$(USE_RTTI)" USE_THREADS="$(USE_THREADS)" & 
	OFFICIAL_BUILD="$(OFFICIAL_BUILD)" VENDOR="$(VENDOR)" & 
	WX_FLAVOUR="$(WX_FLAVOUR)" WX_LIB_FLAVOUR="$(WX_LIB_FLAVOUR)" CFG="$(CFG)" & 
	CPPUNIT_CFLAGS="$(CPPUNIT_CFLAGS)" CPPUNIT_LIBS="$(CPPUNIT_LIBS)" & 
	RUNTIME_LIBS="$(RUNTIME_LIBS)" 


I'm kinda stumped... help?

-Greg

new topic     » topic index » view message » categorize

2. Re: wxEuphoria and ODBC

ghaberek said...

Looking at the wpp386 line, it looks like USE_ODBC is not getting passed to the compiler via the make file, yet I see it listed in there:

Did you change config.wat? Search for USE_ODBC and make sure that its 1. Should be on line 78.

Matt

new topic     » goto parent     » topic index » view message » categorize

3. Re: wxEuphoria and ODBC

mattlewis said...

Did you change config.wat? Search for USE_ODBC and make sure that its 1. Should be on line 78.

Matt

Aye, there's the rub.

-Hamlet

new topic     » goto parent     » topic index » view message » categorize

4. Re: wxEuphoria and ODBC

That was a no-go as well. I created a branch called wxDb. Can you take a look when you get a chance?

-Greg

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu