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

Parse error in pointer to template

P: n/a
Hello,

my code uses a 3rd party library which builds without problems in MS VC++
6.0 but gives some errors with gcc 3.2. I cannot figure how can I get a
workarround to make it build on both compilers.

The problem is in the following sentence:

Property<SAX::basic_LexicalHandler<stringT>*>* prop =
new Property<SAX::basic_LexicalHandler<stringT>*>
(lexicalHandlerAdaptor_.getLexicalHandler());

gcc gives an error in the first line: "parse error before `*' token".

VC++ builds fine and I've read that this library also builds with old
versions of gcc. But no success with gcc 3.2.

Does anybody know if the sintax is correct?
Any workarrounds?

Thanks in advance
Manuel

************************************************** *******
Manuel González Castro
Laboratorio de Ingeniería Mecánica - Universidad de La Coruña
************************************************** *******
Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.