List:MySQL++« Previous MessageNext Message »
From:Elias Nakos Date:November 24 2006 8:06pm
Subject:works ok, examples won't compile
View as plain text  
hi
Ubuntu Dapper Drake
gcc 4.0.3
MySql 5.0
Pentium M

mysql, mysql++ and all relevant packages installed from ubuntu repositories

the following code:
#include <stdio.h>
#include <mysql++.h>

int main (void) {

    return 29;
}

works ok with the command
c++ -I/usr/include/mysql -I/usr/include/mysql++/ -lmysqlclient -lmysqlpp 
simplest.cpp


into the examples folder when typing
make -f Makefile.simple
I get the following output:
-----------------------------------------------------------------
g++ -I/usr/include/mysql -I /usr/include/mysql++ -I../lib -lmysqlclient 
-lmysqlpp -O0 -c util.cpp
stock.h: At global scope:
stock.h: At global scope:
stock.h: At global scope:
stock.h: In constructor 
stock.h: At global scope:
stock.h: In constructor 
stock.h: At global scope:
stock.h: In constructor 
stock.h: At global scope:
stock.h:41: error: template argument 1 is invalid
stock.h:41: error: template argument 1 is invalid
stock.h:41: error: template argument 1 is invalid
stock.h:41: error: template argument 1 is invalid
stock.h:41: error: template argument 1 is invalid
stock.h:41: error: template argument 1 is invalid
----------------------------------------------------------------------------------------------

any guesses on what could be going wrong....
thanks.
elias

_________________________________________________________________
http://imagine-msn.com/messenger/launch80/?locale=en-gb

Thread
works ok, examples won't compileElias Nakos24 Nov
  • Re: works ok, examples won't compileWarren Young28 Nov