• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: GCC 3.3 template compile error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GCC 3.3 template compile error?


  • Subject: Re: GCC 3.3 template compile error?
  • From: "Tim Conkling" <email@hidden>
  • Date: Sat, 13 Oct 2007 16:56:27 -0700

class LibXmlReader
{
public:
   template <class T> T getAttribute(const xmlpp::Node* node, const std::string& attrName) const;
   ...
};

Also, this code compiles fine with GCC 4 on my Mac, and with VC++ 7.1 on my Windows PC. It causes GCC 3.3, compiling for PPC, to complain.

Thanks,
Tim

On 10/13/07, Clark Cox < email@hidden> wrote:
On 10/12/07, Tim Conkling <email@hidden> wrote:
> I'm compiling a Universal Binary. GCC 4 has no complaints (and neither does
> Visual C++), but GCC 3.3 chokes on the following code with the
> disappointingly non-descriptive message, "error: parse error before `;'
> token".
>
> (The getAttribute() function in the offending line is a templated member
> function of the LibXmlReader class. It's called from lots of non-template
> functions with no problems.)

What does the declaration of getAttribute() look like?


--
Clark S. Cox III
email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re[2]: GCC 3.3 template compile error?
      • From: Peter Mulholland <email@hidden>
References: 
 >GCC 3.3 template compile error? (From: "Tim Conkling" <email@hidden>)
 >Re: GCC 3.3 template compile error? (From: "Clark Cox" <email@hidden>)

  • Prev by Date: Re: Have dylib, want to preserve drag-install
  • Next by Date: Re[2]: GCC 3.3 template compile error?
  • Previous by thread: Re: GCC 3.3 template compile error?
  • Next by thread: Re[2]: GCC 3.3 template compile error?
  • Index(es):
    • Date
    • Thread