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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:22:42+00:00 2026-06-05T20:22:42+00:00

I am building a cmake project that includes cuda code. I am unable to

  • 0

I am building a cmake project that includes cuda code. I am unable to compile one of the cuda files that includes several h files. This is the compiler error I receive

In file included from /usr/include/c++/4.4/bits/basic_ios.h:39,
                 from /usr/include/c++/4.4/ios:45,
                 from /usr/include/c++/4.4/ostream:40,
                 from /usr/include/c++/4.4/iostream:40,
                 from /home/pfeifs/Developement/Deform/LinuxDeform/LibDeform/Deform/cutil_comfunc.h:20,
                 from /home/pfeifs/Developement/Deform/LinuxDeform/LibDeform/Deform/VectorMathDef.h:22,
                 from /home/pfeifs/Developement/Deform/LinuxDeform/LibDeform/src/Deform/VectorMath.cu:15:
/usr/include/c++/4.4/bits/locale_facets.h:2521:44: error: macro "isspace" passed 2 arguments, but takes just 1

isspace() is defined as a macro requiring one argument in <ctype.h> and declared as a templated function in locale_facets.h. (These are both standard files.) However at the beginning of locale_facets.h, <cctype> is included and that undeclares the macro.

Any help or insight into this problem is greatly appreciated.

  • 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-05T20:22:44+00:00Added an answer on June 5, 2026 at 8:22 pm

    Do not mix and match C and C++ headers.

    Use #include <locale> to pull in the std::isspace template with two parameters. Use #include <cctype> for a C++ safe include of ctype.h that won’t cause conflicts with STL.

    If you are writing a C program and don’t want or need C++ then there should be no problem including ctype.h and using the isspace function with only one parameter.

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

Sidebar

Related Questions

I'm building some code using CMake that should be compiled against the ScriptingBridge .
I have some elisp files in a project that I want to byte compile
I'm building my c++ program with cmake on a Mac. The compiler gives me
I'm building C++ app with CMake. But it uses some source files in C.
Building my code (below) returns error 'imread' is not a member of 'cv' .
I've got a project managed by CMake with multiple libraries that have link time
I'm building a file using the CMake Build System and Microsoft's Visual C++ compiler.
I have a Qt4 CMake project and I'd like to integrate the QM files
I'm in the process of building a little project this weekend called Pirates Vs.
I have got a Qt project which I am configuring and building using CMake.

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.