Re: [Sqlrelay-discussion] 0.49 Compilation Issue
Brought to you by:
mused
From: David M. <dav...@fi...> - 2013-01-15 14:33:12
|
Try adding: typedef SQLULEN SQLROWSETSIZE; around line 54 or so. Interesting problem though. Are you using unixodbc or iodbc, and what version? David Muse dav...@fi... On 01/15/2013 04:54 AM, Alastair Mackinlay wrote: > Hi, > > I'm having a problem when compiling SQLRelay 0.49, the error is below. I'm using gcc 4.6.6 on a Centos 6.3 system. > > Any suggestions as to how I might resolve this would be appreciated. > > Regards, > Al > > -- start -- > make[3]: Entering directory `/usr/local/src/sqlrelay-0.49/src/api/odbc' > /bin/sh ../../../libtool --mode=compile g++ -Wall -pipe -Wno-long-double -Werror -I./ -I../../../ -I../../../src/common -I../../../src/api/c++/include -I/usr/local/firstworks/include -DSQLR_VERSION=\"0.49\" -c sqlrodbc.cpp -o sqlrodbc.lo > libtool: compile: g++ -Wall -pipe -Wno-long-double -Werror -I./ -I../../../ -I../../../src/common -I../../../src/api/c++/include -I/usr/local/firstworks/include -DSQLR_VERSION=\"0.49\" -c sqlrodbc.cpp -fPIC -DPIC -o .libs/sqlrodbc.o > sqlrodbc.cpp:125: error: ISO C++ forbids declaration of 'SQLROWSETSIZE' with no type > sqlrodbc.cpp:125: error: expected ';' before '*' token > sqlrodbc.cpp: In function 'SQLRETURN SQLR_SQLAllocHandle(SQLSMALLINT, void*, void**)': > sqlrodbc.cpp:268: error: 'struct STMT' has no member named 'rowsfetchedptr' > sqlrodbc.cpp: In function 'SQLRETURN SQLR_Fetch(void*, SQLULEN*, SQLUSMALLINT*)': > sqlrodbc.cpp:2376: error: 'struct STMT' has no member named 'rowsfetchedptr' > sqlrodbc.cpp:2377: error: 'struct STMT' has no member named 'rowsfetchedptr' > sqlrodbc.cpp: In function 'SQLRETURN SQLR_SQLSetStmtAttr(void*, SQLINTEGER, void*, SQLINTEGER)': > sqlrodbc.cpp:4445: error: 'struct STMT' has no member named 'rowsfetchedptr' > sqlrodbc.cpp:4445: error: 'SQLROWSETSIZE' was not declared in this scope > sqlrodbc.cpp:4445: error: expected primary-expression before ')' token > sqlrodbc.cpp:4445: error: expected ';' before 'value' > cc1plus: warnings being treated as errors > At global scope: > cc1plus: error: unrecognized command line option "-Wno-long-double" > make[3]: *** [sqlrodbc.lo] Error 1 > make[3]: Leaving directory `/usr/local/src/sqlrelay-0.49/src/api/odbc' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/usr/local/src/sqlrelay-0.49/src/api' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/usr/local/src/sqlrelay-0.49/src' > make: *** [all] Error 2 > -- end -- > ------------------------------------------------------------------------------ > Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS > and more. Get SQL Server skills now (including 2012) with LearnDevNow - > 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. > SALE $99.99 this month only - learn more at: > http://p.sf.net/sfu/learnmore_122512 > _______________________________________________ > Sqlrelay-discussion mailing list > Sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion > > > _______________________________________________________ > Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting > http://www.doteasy.com > |