List:MySQL++« Previous MessageNext Message »
From:Alex Luya Date:February 23 2009 11:00am
Subject:How to run an example with eclipse?
View as plain text  
With eclipse,I have compiled following sourcing code 
successfully(eclipse 3.4+MinGW 5.1.8 with gcc 3.4.5+MySQL 
5.1.3+MySQL++3.0.9):
test.cpp
----------------------------------------------
#include <mysql++.h>
using namespace std;
int main()
{
    cout << "hello" << std::endl;
    mysqlpp::String greeting("Hello, world!");
    cout << greeting << std::endl;
    return 0;
}
----------------------------------------------------
generate a file:a.exe without warnings and errors.
But when I run a.exe,I got nothing,and I try to debug it,I got this 
error  message:
-------------------------------------------------------------------------
[New thread 2960.0x10c]
You can't do that without a process to debug.
gdb: unknown target exception 0xc0000135 at 0x7c97478e
-----------------------------------------------------------------------------------------
So what is the problem?
(I have compiled mysq++3.0.9+mysql 5.1.31 successfully,and ran the 
resetdb.exe successfully).



Thread
How to run an example with eclipse?Alex Luya23 Feb