| Summary: | Impossible to compile c++ applications | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Voicu Liviu <liviu.voicu> |
| Component: | [OLD] Development | Assignee: | Gentoo's Team for Core System packages <base-system> |
| Status: | RESOLVED INVALID | ||
| Severity: | major | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | MySQL++ Example | ||
|
Description
Voicu Liviu
2004-03-26 07:23:26 UTC
Created attachment 28105 [details] MySQL++ Example What file are you trying to compile? I just tried one of the examples from the tutorial here: http://www.mysql.com/documentation/mysql++/ Which I've attached, and it compiles just fine using: c++ -Wno-deprecated mysql++_example.cpp -o mysql++_example -L/usr/lib/mysql -L/usr/lib/libsqlplus.so -I/usr/include/mysql -I/usr/include/mysql++ -lsqlplus Yea, you compiled but it does not work, doesn't it? Why? Look at your sample and to this (original one): http://www.mysql.com/documentation/mysql++/4_Tutorial.html#SECTION03142000000000000000 The prob is here: <code> .. .. Query query = con.query(); query << "select * from Users"; .. .. </code> The compilation failes on query << "select * from Users"; Your sample is not correct at all, yes it does compile but have you tried to run it? I guess not! <your_code> // Query query = con.query(); con.query() << "select * from stock"; </your_code> What is the point of writing con.query() << "select * from stock"; while you can do: Query query = con.query(); query << "select * from stock"; Please see this thread and READ what the developers say there: (for gcc 3.3.2) http://lists.mysql.com/plusplus/3010 Good day not a gentoo issue. |