[NOOB] need help :)
Posted by: krboktion
Date: November 01, 2005 04:58AM

Hi,
I tried to compil this code under code::blocks with Microsoft Visual C++ Toolkit 2003 :

#include <iostream>
#include <iomanip>
#include <mysql++.h>

int main()
{
std::cout << "Hello world!" << std::endl;
return 0;
}

I linked all files needed, but I obtain a lot of errors, see below:

Project : Console application
Compiler : Microsoft Visual C++ Toolkit 2003 (called directly)
Directory : $NOT IMPORTANT$
--------------------------------------------------------------------------------
Switching to target: default
main.cpp
$PATH$\mysql++\mysql\include\mysql_com.h(115) : error C2146: syntax error : missing ';' before identifier 'fd'
$PATH$\mysql++\mysql\include\mysql_com.h(115) : error C2501: 'st_net::SOCKET' : missing storage-class or type specifiers
$PATH$\mysql++\mysql\include\mysql_com.h(115) : error C2501: 'st_net::fd' : missing storage-class or type specifiers
$PATH$\mysql++\include\resiter1.hh(29) : error C2977: 'std::reverse_iterator' : too many template arguments
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\resiter1.hh(52) : see reference to class template instantiation 'const_subscript_container<OnType,ValueType,ReturnType,SizeType,DiffType>' being compiled
$PATH$\mysql++\include\resiter1.hh(30) : error C2977: 'std::reverse_iterator' : too many template arguments
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\set1.hh(31) : warning C4346: 'std::set<_Kty>::key_type' : dependent name is not a type
prefix with 'typename' to indicate a type
$PATH$\mysql++\include\set1.hh(31) : error C2923: 'MysqlSetInsert' : 'std::set<_Kty>::key_type' is invalid as template argument '#2', type expected
$PATH$\mysql++\include\set1.hh(31) : error C2955: 'MysqlSetInsert' : use of class template requires template argument list
$PATH$\mysql++\include\set1.hh(28) : see declaration of 'MysqlSetInsert'
$PATH$\mysql++\include\set1.hh(36) : warning C4346: 'std::vector<_Ty>::value_type' : dependent name is not a type
prefix with 'typename' to indicate a type
$PATH$\mysql++\include\set1.hh(36) : error C2923: 'MysqlListInsert' : 'std::vector<_Ty>::value_type' is invalid as template argument '#2', type expected
$PATH$\mysql++\include\set1.hh(36) : error C2955: 'MysqlListInsert' : use of class template requires template argument list
$PATH$\mysql++\include\set1.hh(19) : see declaration of 'MysqlListInsert'
$PATH$\mysql++\include\resiter1.hh(29) : error C2977: 'std::reverse_iterator' : too many template arguments
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\row1.hh(236) : see reference to class template instantiation 'const_subscript_container<OnType,ValueType,ReturnType>' being compiled
with
[
OnType=MysqlRow,
ValueType=MysqlColData,
ReturnType=const MysqlColData
]
$PATH$\mysql++\include\resiter1.hh(29) : error C2955: 'std::reverse_iterator' : use of class template requires template argument list
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\resiter1.hh(29) : error C2955: 'std::reverse_iterator' : use of class template requires template argument list
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\resiter1.hh(30) : error C2977: 'std::reverse_iterator' : too many template arguments
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\resiter1.hh(30) : error C2955: 'std::reverse_iterator' : use of class template requires template argument list
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\resiter1.hh(30) : error C2955: 'std::reverse_iterator' : use of class template requires template argument list
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\resiter1.hh(29) : error C2977: 'std::reverse_iterator' : too many template arguments
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\fields1.hh(10) : see reference to class template instantiation 'const_subscript_container<OnType,ValueType>' being compiled
with
[
OnType=MysqlFields,
ValueType=MysqlField
]
$PATH$\mysql++\include\resiter1.hh(29) : error C2955: 'std::reverse_iterator' : use of class template requires template argument list
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\resiter1.hh(29) : error C2955: 'std::reverse_iterator' : use of class template requires template argument list
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\resiter1.hh(30) : error C2977: 'std::reverse_iterator' : too many template arguments
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\resiter1.hh(30) : error C2955: 'std::reverse_iterator' : use of class template requires template argument list
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\resiter1.hh(30) : error C2955: 'std::reverse_iterator' : use of class template requires template argument list
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\resiter1.hh(29) : error C2977: 'std::reverse_iterator' : too many template arguments
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\result1.hh(141) : see reference to class template instantiation 'const_subscript_container<OnType,ValueType,ReturnType>' being compiled
with
[
OnType=MysqlRes,
ValueType=MysqlRow,
ReturnType=const MysqlRow
]
$PATH$\mysql++\include\resiter1.hh(29) : error C2955: 'std::reverse_iterator' : use of class template requires template argument list
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\resiter1.hh(29) : error C2955: 'std::reverse_iterator' : use of class template requires template argument list
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\resiter1.hh(30) : error C2977: 'std::reverse_iterator' : too many template arguments
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\resiter1.hh(30) : error C2955: 'std::reverse_iterator' : use of class template requires template argument list
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\resiter1.hh(30) : error C2955: 'std::reverse_iterator' : use of class template requires template argument list
F:\Program Files\Microsoft Visual C++ Toolkit 2003\include\xutility(621) : see declaration of 'std::reverse_iterator'
$PATH$\mysql++\include\coldata3.hh(18) : error C2244: '<Unknown>' : unable to match function definition to an existing declaration
definition
'mysql_ColData<Str>::operator`MysqlNull<T2,T3>'(void) const'
existing declarations
'mysql_ColData<Str>::operator`MysqlNull<T,B>'(void) const'
Process terminated with status 1 (0 minutes, 1 seconds)
28 errors, 2 warnings

Options: ReplyQuote


Subject
Views
Written By
Posted
[NOOB] need help :)
1458
November 01, 2005 04:58AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.