dbTalk Databases Forums  

SSQLS Compile Errors

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss SSQLS Compile Errors in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Haines, Charles A.
 
Posts: n/a

Default SSQLS Compile Errors - 08-29-2005 , 08:05 AM






I'm trying to compile the following code on QNX 6.3:

sql_create_c_order_8( GrossCount, 2, 0,
int, CounterNum, 1,
int, EventID, 8,
string, GCType, 2,
int, Count, 3,
string, Description, 4,
double, LiveTime, 5,
double, RealTime, 6,
double, DeadTime, 7 )

However, I'm getting the following errors:

src/SFXCounter.cpp: In function `void populate_GrossCount(GrossCount*, const
mysqlpp::Row&) [with mysqlpp::sql_dummy_type dummy = sql_dummy]':
src/SFXCounter.cpp:55: instantiated from here
src/SFXCounter.cpp:55: error: invalid static_cast from type `const
mysqlpp::ColData' to type `std::basic_string<char,
std::char_traits<char>,
std::allocator<char> >'
src/SFXCounter.cpp:55: instantiated from here
src/SFXCounter.cpp:55: error: invalid static_cast from type `const
mysqlpp::ColData' to type `std::basic_string<char,
std::char_traits<char>,
std::allocator<char> >'
cc:
/usr/qnx630/host/qnx6/x86/usr/lib/gcc-lib/i386-pc-nto-qnx6.3.0/3.3.1/cc1plus
error 1
make: *** [sfxcounter] Error 1

I got the same errors when trying to compile the examples, so I'm sure it's
related. I was told that the problem might be buried deep in
custom-macros.h. I was curious if any progress had been made on this? I'd
like to use SSQLS because it makes the insertion of data into the database
easier. I didn't see any examples of putting information into a database
unless it was using SSQLS. If there is another way, I'd be happy to
entertain it. Or if someone could point me in the direction to fix this
problem, I'll see if I can.

Thanks,
Chuck

--
Charles Haines
Software Engineer / QA
Remote Sensing Lab - Andrews
------------------------------
Phone: (301) 817-3409
Pager: (800) 759-8888 #1209278
Email: hainesca (AT) nv (DOT) doe.gov
------------------------------

This e-mail and any attachments may contain privacy act information. If you
received this message in error or are not the intended recipient, you should
destroy this message and any attachments, and you are prohibited from
retaining, distributing, disclosing, or using any information contained
herein. Please inform us of the erroneous delivery by return e-mail. Thank
you for your cooperation.


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: SSQLS Compile Errors - 08-29-2005 , 01:01 PM






Haines, Charles A. wrote:
Quote:
I got the same errors when trying to compile the examples,
Please discuss this in terms of the examples, then. It's common ground.

Quote:
I was told that the problem might be buried deep in
custom-macros.h. I was curious if any progress had been made on this?
I don't know why you'd expect progress. These problems don't happen on
Linux or Windows, and nobody's offered to buy me a QNX license. It's
awfully difficult to fix a problem I can't replicate.

The source code is open. You have the tools, and the experience.
Ball's in your court, my man.

Quote:
I didn't see any examples of putting information into a database
unless it was using SSQLS.
All SSQLS does is build an INSERT query for you. You can do that using
the Query object's stream interface. If you were reduced to this, it
wouldn't be the worst thing. Doing that is still a lot nicer than using
the C API directly, if only to be able to use the manipulators.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Chris Frey
 
Posts: n/a

Default Re: SSQLS Compile Errors - 08-29-2005 , 04:37 PM



On Mon, Aug 29, 2005 at 06:05:12AM -0700, Haines, Charles A. wrote:
Quote:
src/SFXCounter.cpp:55: error: invalid static_cast from type `const
mysqlpp::ColData' to type `std::basic_string<char,
std::char_traits<char>,
std::allocator<char> >'
Casting should work, since ColData can convert to const char.


Quote:
/usr/qnx630/host/qnx6/x86/usr/lib/gcc-lib/i386-pc-nto-qnx6.3.0/3.3.1/cc1plus
Is there a newer compiler version available on QNX? If so, you might want
to try it.

- Chris


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.