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

  • Home
  • SEARCH
  • 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 8484543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:24:34+00:00 2026-06-10T20:24:34+00:00

I am porting a quite large C/C++ project to Mac with XCode. Some C++

  • 0

I am porting a quite large C/C++ project to Mac with XCode. Some C++ classes import string or vector. This causes some strange errors reporting redefinition of several std functions. For example the compiler reports redefinition of 'std::__is_integral' in <type_traits>.

I don’t get any other errors and I definitely don’t overwrite any of these std-functions. Also the error vanishes when I comment the include of string.

What might cause this behavior?

  • 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-10T20:24:35+00:00Added an answer on June 10, 2026 at 8:24 pm

    It turned out that somewhere in the C++ code – which I inherited for this project – there was a redefinition of bool. bool was redefined as int. Therefore in the type_traits header (and some other std-lib headers) there were duplicate method definitions of generic methods that hat a bool and an int generic parameter.

    For example in type_traits there is:

    template <> struct __is_integral<bool> : public true_type {};
    

    and

    template <> struct __is_integral<int> : public true_type {};
    

    As bool was redefined as int both methods had the same signature and I got this redefinition of... error.

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

Sidebar

Related Questions

I've grown quite fond of some structures in C++, and I've recently been porting
I am in the process of porting quite a large chunk of old HTML
I'm porting some WPF code to WinRT. The code uses System.Windows.Media.Animation.ParallelTimeline to syncrhonize two
We're porting a legacy Java app to JRuby and would like to reuse some
I am porting quite old corp application from IE to Firefox. Here is my
I'm porting some code I prototyped in python over to flash and while actionscript
I am porting some Java code to C++ and wanted to find something that
I'm porting a 2D platformer and I need a good way of getting some
I need to port a fairly large Visual C/C++ Project to Android in my
I am porting some Unix code into Windows Visual Studio 2010. I have run

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.