14 messages in com.mysql.lists.plusplusRE: C++ API| From | Sent On | Attachments |
|---|---|---|
| Rune Solem | 18 Dec 2000 06:55 | |
| Arturs Aboltins | 18 Dec 2000 23:14 | |
| Rune Solem | 19 Dec 2000 00:29 | |
| Sander Pilon | 19 Dec 2000 06:33 | |
| Sinisa Milivojevic | 19 Dec 2000 08:30 | |
| Sander Pilon | 19 Dec 2000 09:40 | |
| Sinisa Milivojevic | 19 Dec 2000 10:04 | |
| Alex Shi | 19 Dec 2000 10:33 | |
| Don Thompson | 19 Dec 2000 11:40 | |
| Alex Shi | 19 Dec 2000 11:52 | |
| Alex Shi | 19 Dec 2000 17:18 | |
| Stonix | 19 Dec 2000 19:47 | |
| Sinisa Milivojevic | 20 Dec 2000 03:20 | |
| Sinisa Milivojevic | 20 Dec 2000 03:20 |
| Subject: | RE: C++ API![]() |
|---|---|
| From: | Arturs Aboltins (Artu...@lattelekom.lv) |
| Date: | 12/18/2000 11:14:52 PM |
| List: | com.mysql.lists.plusplus |
Hello Rune !
Appears that iterator.h differs on different Borland C++ versions. What elese you can do : copy this part of definitions into your old iterator.h , somwhere in the beginning after section: ... #ifndef _RWSTD_NO_NAMESPACE namespace std { #endif
//-------------------------------- struct input_iterator_tag {}; struct output_iterator_tag {}; struct forward_iterator_tag : public input_iterator_tag {}; struct bidirectional_iterator_tag : public forward_iterator_tag {}; struct random_access_iterator_tag : public bidirectional_iterator_tag {};
// The base classes input_iterator, output_iterator, forward_iterator, // bidirectional_iterator, and random_access_iterator are not part of // the C++ standard. (They have been replaced by struct iterator.) // They are included for backward compatibility with the HP STL.
template <class _Tp, class _Distance> struct input_iterator { typedef input_iterator_tag iterator_category; typedef _Tp value_type; typedef _Distance difference_type; typedef _Tp* pointer; typedef _Tp& reference; };
struct output_iterator { typedef output_iterator_tag iterator_category; typedef void value_type; typedef void difference_type; typedef void pointer; typedef void reference; };
template <class _Tp, class _Distance> struct forward_iterator { typedef forward_iterator_tag iterator_category; typedef _Tp value_type; typedef _Distance difference_type; typedef _Tp* pointer; typedef _Tp& reference; };
template <class _Tp, class _Distance> struct bidirectional_iterator { typedef bidirectional_iterator_tag iterator_category; typedef _Tp value_type; typedef _Distance difference_type; typedef _Tp* pointer; typedef _Tp& reference; };
template <class _Tp, class _Distance> struct random_access_iterator { typedef random_access_iterator_tag iterator_category; typedef _Tp value_type; typedef _Distance difference_type; typedef _Tp* pointer; typedef _Tp& reference; }; //-------------------------------------------------------
Good luck !
Arturs Aboltins mailto:aabo...@exchange.telekom.lv t.:+371-7321566
-----Original Message----- From: Rune Solem [mailto:rune...@hiq.no] Sent: Monday, December 18, 2000 4:56 PM To: plus...@lists.mysql.com Subject: C++ API
Hi.
My name is Rune Solem, and I was hoping that there i someone out there who can help me with a problem.
I have downloaded the API for Borland C++ 5.* and Windows, and I have copied the iterator file to the borland include catalog as described in the readme file following in the zip.
I am using Borland 5.0 C++ compiler and WinNT.
Problem:
When I compile the example simple1 I get errors in the iterator.h file.
Have anyone else encountered this problem, and what can I do.
Best regards
Rune Solem




