List:MySQL++« Previous MessageNext Message »
From:FreezeBurnX Date:May 24 2008 7:21pm
Subject:Failing to compile MySQL++
View as plain text  
#include "include/mysql++.h"

#include <iostream>
#include <iomanip>
#include <string>

using namespace std;

int main(int argc, char *argv[])
mysqlpp::Connection con(false);
return 1;
return 0;

Gives me the error
C:\mysql++\main.cpp|12|error: `connect_to_db' was not declared in this

I have successfully compiled the dll and the examples are working, but I
don't understand what I am doing wrong. I've been searching about this for
more than 4 hours. MySQL version 5.0 is installed, I'm using gcc 3.4.5 and
mingw. IDE is Code::Blocks
Thank you!


Failing to compile MySQL++FreezeBurnX24 May
  • Re: Failing to compile MySQL++Warren Young27 May