Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6330699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:55:07+00:00 2026-05-24T17:55:07+00:00

I’m doing some contribution to an open source library, but I’m having trouble modifying

  • 0

I’m doing some contribution to an open source library, but I’m having trouble modifying other people’s code. Previously the library had a file called IntervalT.h and a file called Curves.h with the implementation in the file Curves.tcc, and Interval.h includes Curves.h for some reason. Right now I need to use IntervalT.h in Curves.h, but when I tried to use the class IntervalT<NT> defined in IntervalT.h, the compiler gives me error (I’ve already included IntervalT.h in the beginning of Curves.h file):

../../../inc/CORE/poly/Curves.h:1337:3: error: ‘IntervalT’ does not name a type

My question is: Since I never have had such experience before, is “does not name a type” error related to mutual inclusion of c++ header files? Or it is other mistakes that cause this error? If so, how should I write my program to let the Curves.h sees IntervalT.h?

By the way, this piece of code was organized in a very weird way. Curves.tcc is actually included by Curves.h, which is the reverse way of we usually do. Is there a particular reason to do this? Or it doesn’t really matter? And what is .tcc extension after all?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:55:08+00:00Added an answer on May 24, 2026 at 5:55 pm

    I can only guess (because you can name your files whatever you want), but the .tcc extension is a modification of the .cc extension (which is just C++ code) but the t stands for template. This is confirmed by the fact that Curves.h includes Curves.tcc which is a common technique for separating the interface from the implementation of a template while still not upsetting the compiler which expects both declaration and definition of templated code in the same file (or you get an error). See this answer to get a better idea.

    The does not name a type could be that IntervalT is a template and you’re not providing a template parameter (or that could be a different error, I haven’t tried it), or that even though the file is called IntervalT.h it does not contain a class called IntervalT, or that it’s in a different namespace. You’ll have to give more info before we can make a better diagnosis.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.