By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,446 Members | 3,019 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,446 IT Pros & Developers. It's quick & easy.

parse error before `>' token

P: n/a
HI
I am getting the following error while trying to compile my program

/usr/include/c++/3.2.2/bits/stringfwd.h:48: parse error before `>' token

namespace std
47 {
48 template<typename _Alloc>
49 class allocator;
50
51 template<class _CharT>
52 struct char_traits;
53
54 template<typename _CharT, typename _Traits = char_traits<_CharT>,
55 typename _Alloc = allocator<_CharT> >
56 class basic_string;
Can sumone tell me the possible solution to it

Thanks
Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
nitin wrote:
HI
I am getting the following error while trying to compile my program

/usr/include/c++/3.2.2/bits/stringfwd.h:48: parse error before `>' token

namespace std
47 {
48 template<typename _Alloc>
49 class allocator;
50
51 template<class _CharT>
52 struct char_traits;
53
54 template<typename _CharT, typename _Traits =
char_traits<_CharT>,
55 typename _Alloc = allocator<_CharT> >
56 class basic_string;
Can sumone tell me the possible solution to it

Thanks


That's not enough information to tell. The file is fine (I double checked
against my own local one to be sure; I'm guessing you're on RedHat 9 like I
am?)
It probably has to do with your compiler configuration and/or something
included before it, or how it was included. You need to provide that
information for help with this.

Jul 19 '05 #2

P: n/a
ni***********@yahoo.com (nitin) wrote in message news:<db**************************@posting.google. com>...
HI
I am getting the following error while trying to compile my program

/usr/include/c++/3.2.2/bits/stringfwd.h:48: parse error before `>' token

namespace std
47 {
48 template<typename _Alloc>
49 class allocator;
50
51 template<class _CharT>
52 struct char_traits;
53
54 template<typename _CharT, typename _Traits = char_traits<_CharT>,
55 typename _Alloc = allocator<_CharT> >
56 class basic_string;
Can sumone tell me the possible solution to it


Did you include <memory>?
Dave
Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.