![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have been searching for the past 3 days for an answer to my problem b= ut |
|
__________________________________________________ _______________ All-in-one security and maintenance for your PC. Get a free 90-day tri= al! http://www.windowsonecare.com/purcha...id=3Dwl_wlmail |
#3
| |||
| |||
|
|
I have been searching for the past 3 days for an answer to my problem bu= t can't seem to find an answer: while running: #include <mysql++.h>#inclu= |
|
__________________________________________________ _______________ All-in-one security and maintenance for your PC. Get a free 90-day tria= l! http://www.windowsonecare.com/purcha...id=3Dwl_wlmail =20 |
#4
| |||
| |||
|
|
#include mysql++.h>#include <custom.h> sql_create_3(user, 1, 0, mysqlpp::sql_int, id, mysqlpp::sql_varchar, username, mysqlpp::sql_varchar, pin) |
|
I receive this error: g++ -I/usr/local/mysql-current/include/mysql -I/usr/local/include/mysql++ mysql++example.cpp -o mysqlex -lmysqlppIn file included from mysql++example.cpp:9:util.cpp: In function `void print_stock_row(const mysqlpp::Row&, int)':util.cpp:178: error: conversion from `const mysqlpp::ColData' to non-scalar type `mysqlpp::sql_varchar' requestedutil.cpp:180: error: invalid |
#5
| |||
| |||
|
|
It may be small condolence, but I have not had any luck with those sql_create_x macros either. They seem to generate code that refuses to compile, no matter what you do. |
|
I have abandoned them, after wasting an entire day on it. |
#6
| |||
| |||
|
|
I believe you need to change your third parameter to 3. I think this must match the x in sql_create_x. |
![]() |
| Thread Tools | |
| Display Modes | |
| |