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 8195165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:02:30+00:00 2026-06-07T05:02:30+00:00

Possible Duplicate: Difference between <string> and <string.h>? My specific example uses following clause: #include

  • 0

Possible Duplicate:
Difference between <string> and <string.h>?

My specific example uses following clause:

#include <string>

If I use following clause instead

#include <string.h>

compiler ends with error

[BCC32 Error] utils.cpp(173): E2316 ‘getline’ is not a member of ‘std’

Line 173 in utils.cpp file is as follows:

while(std::getline(in, line, '\n'))

I thought that there is no difference between these two clauses. Now I am confused. What files are in fact included by these two clauses? Lets say, my C++ Builder installation has program directory C:\Program Files\RAD Studio\9.0 and include files are located in subdirectory C:\Program Files\RAD Studio\9.0\include.

  • 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-06-07T05:02:34+00:00Added an answer on June 7, 2026 at 5:02 am

    They are two different headers. The convention in the C standard library is to have the headers ending with .h, whereas in the C++ standard library the convention is to miss out the file extension altogether. Some more detail from wikipedia:

    Each header from the C Standard Library is included in the C++
    Standard Library under a different name, generated by removing the .h,
    and adding a ‘c’ at the start; for example, ‘time.h’ becomes ‘ctime’.
    The only difference between these headers and the traditional C
    Standard Library headers is that where possible the functions should
    be placed into the std:: namespace (although few compilers actually do
    this). In ISO C, functions in the standard library are allowed to be
    implemented by macros, which is not allowed by ISO C++.

    Other libraries follow different conventions. Boost, for instance, chooses .hpp as their C++ header extension of choice.

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

Sidebar

Related Questions

Possible Duplicate: What is the difference between String.Empty and “” Which of the following
Possible Duplicate: difference between string object and string literal Let's say I have two
Possible Duplicate: What is the difference between String.Empty and “” Is equivalent to String.Empty
Possible Duplicate: String formatting options: pros and cons What's the difference between %.2f %
Possible Duplicate: What is the difference between char a[] = “string” and char *p
Possible Duplicate: What is the difference between using #include<filename> and #include<filename.h> in c++ I've
Possible Duplicate: What is the difference between String.Empty and “” How is String.Empty different
Possible Duplicate: String vs string in C# What is the difference Between String and
Possible Duplicate: String vs string in C# I know there is no difference between
Possible Duplicate: When to Use Double or Single Quotes in JavaScript Difference between single

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.