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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:54:37+00:00 2026-05-14T02:54:37+00:00

I get an incomplete type error when trying to compile my code. I know

  • 0

I get an incomplete type error when trying to compile my code. I know that it is related to includes, but my project is large and it uses several templates so I can’t find which type is actually incomplete. The error message doesn’t help either:

Compiling: ../../../addons/ofxTableGestures/src/Graphics/objects/CursorFeedback.cpp
In file included from ../../../addons/ofxTableGestures/ext/boost/fusion/include/invoke_procedure.hpp:10,
                 from ../../../addons/ofxTableGestures/src/oscGestures/tuioApp.hpp:46,
                 from /home/thechaos/Projectes/of_preRelease_v0061_linux_FAT/addons/../apps/OF-TangibleFramework/ofxTableGestures/src/Graphics/objects/CursorFeedback.hpp:35,
                 from /home/thechaos/Projectes/of_preRelease_v0061_linux_FAT/addons/../apps/OF-TangibleFramework/ofxTableGestures/src/Graphics/objects/CursorFeedback.cpp:31:
../../../addons/ofxTableGestures/ext/boost/fusion/functional/invocation/invoke_procedure.hpp: In function ‘void boost::fusion::invoke_procedure(Function, const Sequence&) [with Function = void (tuio::CanBasicFingers<Graphic>::*)(long int, float, float, float, float, float), Sequence = boost::fusion::joint_view<boost::fusion::joint_view<boost::fusion::iterator_range<boost::fusion::vector_iterator<const boost::fusion::vector6<long int, float, float, float, float, float>, 0>, boost::fusion::vector_iterator<boost::fusion::vector6<long int, float, float, float, float, float>, 0> >, const boost::fusion::single_view<tuio::CanBasicFingers<Graphic>*> >, boost::fusion::iterator_range<boost::fusion::vector_iterator<boost::fusion::vector6<long int, float, float, float, float, float>, 0>, boost::fusion::vector_iterator<const boost::fusion::vector6<long int, float, float, float, float, float>, 6> > >]’:
../../../addons/ofxTableGestures/src/oscGestures/tuioApp.hpp:122:   instantiated from ‘void tuio::AlternateCallback<C, M, E>::run(tuio::TEvent*) [with C = tuio::CanBasicFingers<Graphic>, M = void (tuio::CanBasicFingers<Graphic>::*)(long int, float, float, float, float, float), E = tuio::TeventBasicFingersMoveFinger]’
/home/thechaos/Projectes/of_preRelease_v0061_linux_FAT/addons/../apps/OF-TangibleFramework/ofxTableGestures/src/Graphics/objects/CursorFeedback.cpp:64:   instantiated from here
../../../addons/ofxTableGestures/ext/boost/fusion/functional/invocation/invoke_procedure.hpp:88: error: incomplete type ‘boost::fusion::detail::invoke_procedure_impl<void (tuio::CanBasicFingers<Graphic>::*)(long int, float, float, float, float, float), const boost::fusion::joint_view<boost::fusion::joint_view<boost::fusion::iterator_range<boost::fusion::vector_iterator<const boost::fusion::vector6<long int, float, float, float, float, float>, 0>, boost::fusion::vector_iterator<boost::fusion::vector6<long int, float, float, float, float, float>, 0> >, const boost::fusion::single_view<tuio::CanBasicFingers<Graphic>*> >, boost::fusion::iterator_range<boost::fusion::vector_iterator<boost::fusion::vector6<long int, float, float, float, float, float>, 0>, boost::fusion::vector_iterator<const boost::fusion::vector6<long int, float, float, float, float, float>, 6> > >, 7, true, false>’ used in nested name specifier

If I copy the conflictive code to a same file I can compile it. So I know that the code itself is OK, the problem is the way I instantiate it.

How can I trace the origin of this error? Is there any way to get the trace of the c++ compiler and preprocessor to get more informative messages?

edit: I am using gcc 4.4.1

  • 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-14T02:54:37+00:00Added an answer on May 14, 2026 at 2:54 am

    It would be easier if you gave us the compiler.

    On gcc you can see the preprocessed file using the -E option. If you try compiling the preprocessed file it should get much easier to diagnose. Furthermore you’ll see exactly what are the types involved.

    As for the specific error, the last line is generally the one indicative:

    boost::fusion::detail::invoke_procedure_impl<
      void (tuio::CanBasicFingers<Graphic>::*)
           (long int, float, float, float, float, float),
      const boost::fusion::joint_view<
    
        boost::fusion::joint_view<
          boost::fusion::iterator_range<
            boost::fusion::vector_iterator<
               const boost::fusion::vector6<long int, float, float, float, float,
                  float>,
               0
            >,
            boost::fusion::vector_iterator<
              boost::fusion::vector6<long int, float, float, float, float, float>,
              0
            >
          >,
          const boost::fusion::single_view< tuio::CanBasicFingers<Graphic>* >
        >, // joint_view
    
        boost::fusion::iterator_range<
          boost::fusion::vector_iterator<
            boost::fusion::vector6<long int, float, float, float, float, float>, 0
          >,
          boost::fusion::vector_iterator<
            const boost::fusion::vector6<long int, float, float, float, float,
                float>,
            6
          >
        > // iterator_range
    
      >,
      7,
      true,
      false
    >
    

    Okay, so reformatting helps a bit here.

    It seems that you have a namespace tuio which should contain a template class CanBasicFingers of which you’d like to use the Graphic instanciation and obtain a pointer to a member function.

    Assuming you’ve got all the Boost.Fusion includes right, chances are either CanBasicFingers or Graphic are not included correctly.

    Otherwise, lookup the mix in the constness of the iterators: the ranges are defined each with a const and a non-const iterator which is downright strange.

    You should try and invoke them separately.

    As a general technic for diagnosis, I can only recommend Divide And Conquer approaches. You should try to build up the expression little by little:

    namespace fusion = boost::fusion;
    
    // First
    typedef void (tuio::CanBasicFingers<Graphic>::* function_t)
        (long int, float, float, float, float, float);
    
    // Second
    typedef fusion::vector6<long int, float, float, float, float, float> vector_t;
    
    // Third: the iterators
    typedef fusion::vector_iterator< const vector_t, 0 > const_iterator_begin;
    typedef fusion::vector_iterator< const vector_t, 6 > const_iterator_end;
    
    typedef fusion::vector_iterator< vector_t, 0 > iterator_begin;
    typedef fusion::vector_iterator< vector_t, 6 > iterator_end;
    
    // Fourth: the ranges
    // (which const-ness are oddly messed up)
    typedef fusion::iterator_range< const_iterator_begin, iterator_end > range_1;
    typedef fusion::iterator_range< iterator_begin, const_iterator_end > range_2;
    
    // Fifth the views
    typedef const fusion::single_view<tuio::CanBasicFingers<Graphic>*> single_view;
    typedef fusion::joint_view< range_1, single_view > joint_view_internal;
    typedef fusion::joint_view< joint_view_internal, range_2 > joint_view_external;
    
    // and here is the final type (aaaah!)
    typedef fusion::detail::invoke_procedure_impl<
      function_t,
      joint_view_external,
      7,
      true,
      false
    > procedure_type;
    

    Compiling this decomposed form, should yield the error at a more precise location 🙂

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

Sidebar

Related Questions

I am trying to get a project to compile, and I am running into
Although including <signal.h> I get an error saying that struct sigaction is an incomplete
I get the following error when running my Visual Studio 2008 ASP.NET project (start
I get the following error when trying to run the latest Cygwin version of
Possible Duplicate: Uploadify: show error message from HTTP response I am trying to get
I'm trying to trigger a compile time error if the user of my library
So I'm trying to get class Herder to inherit from class Mob. But I
I am trying to make class that has a member of type of it's
The project I am trying to compile on OS X is: https://github.com/Ramblurr/PietCreator Am unfortunately
We get a large amount of data from our clients in pdf files in

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.