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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:03:40+00:00 2026-06-01T19:03:40+00:00

I am using the octave library in a C++ project. #include <octave/oct.h> Just now

  • 0

I am using the octave library in a C++ project.

#include <octave/oct.h>

Just now I added a header with the any_iterator implemetation from Thomas Becker

#include "any_iterator.hpp"

I just added the header and the project could not be built. Over 20 errors and over 50 warnings appeared. All in the octave headers. For example:

/usr/include/octave/lo-mappers.h:52: 
error: expected unqualified-id before ‘(’ token

in code:

#if defined (HAVE_CMATH_ISNAN)
inline bool xisnan (double x)
{ return std::isnan (x); }         // line 52
#else

or

/usr/include/octave/ov-base.h:580: 
error: expected ‘)’ before ‘void’

in declaration:

virtual octave_value isnan (void) const;

As soon as I removed the header, the problem went away. Also in a separate project, the any_iterator works as expected. It just looks that they cannot coexist.

Any Ideas? I am completely lost. The any_iterator is even protected by namespace.

  • 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-01T19:03:42+00:00Added an answer on June 1, 2026 at 7:03 pm

    Of course it can! Why not? It could be anything, really. Just for example – open a namespace in the header and forget to close it, then include this header in your project and you are done. Compiler will go cuckoo and start throwing errors at you pointing to different places that have actually nothing to do with the error.

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

Sidebar

Related Questions

I'm using the function imagesc from matplotlib in python or octave to display a
How do I find generalized Eigen Values, Vectors using Eigen3 library? In octave, matlab,
I am trying to generate documentation of the Octave API using doxygen. However, doxygen
I’m implementing softmax regression in Octave. Currently I’m using a non-vectorized implementation using following
I cannot get any help information from my octave command prompt. Example, when I
How to play a A (3rd octave) in Octave using playaudio() function? I use
I am using OdePkg in Octave to solve a system of stiff ODEs, e.g.
I'm working on implementing an Octave interpreter inside of an FastCGI session using C/C++
I just tried to create my first function in octave, it looks as follows:
I'm using Octave and R to compute SVD using a simple matrix and getting

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.