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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:35:16+00:00 2026-05-25T18:35:16+00:00

Building simple code (example is below) returns error on eclipse, while g++ from commandline

  • 0

Building simple code (example is below) returns error on eclipse, while g++ from commandline doesn’t. Both eclipse and g++ output executable that act the same (and the result meets my expectation). This is painful when the code isn’t simple like the example I’m showing. Any idea is appreciated.

Env: Eclipse Indigo CDT, Ubuntu 10.10

Sample code:

//For test_boostStr()
#include <boost/algorithm/string.hpp>
#include <vector>
#include <iostream>

//For test_boost_foreach()
#include <boost/algorithm/string/trim.hpp>
#include <boost/foreach.hpp>

void test_boostStr() {
    std::vector<std::string> strs;
    boost::split(strs, "string to split", boost::is_any_of("\t "));
    std::cout << strs.size() << std::endl;
    //  std::cout << strs.at(1) << std::endl;
}

void test_boost_foreach() {
    //std::vector<std::string> namespaces_;
    std::string namespaces_  = " tele op eration. ";
    std::cout << "managing namespaces: ";
    std::string out;
    std::string s;
    BOOST_FOREACH(s, namespaces_)
    {
        boost::trim(s);
        out += s + " ";
    }
    std::cout << out.substr(0, out.size() - 1) << std::endl;
}

int main(void) {
    test_boost_foreach();
}

Result of running the exec :

 t e l e  o p  e r a t i o n . 

Build result in the ‘Problem’ tab on Eclipse:

Description Resource    Path    Location    Type
Invalid arguments '
Candidates are:
boost::mpl::not_<#0> * not_(#0 *)
'   Prove.cpp   /ProvingGround  line 23 Semantic Error
Invalid arguments '
Candidates are:
boost::mpl::not_<#0> * not_(#0 *)
'   Prove.cpp   /ProvingGround  line 23 Semantic Error
Invalid arguments '
Candidates are:
boost::mpl::not_<#0> * not_(#0 *)
'   Prove.cpp   /ProvingGround  line 23 Semantic Error
Invalid arguments '
Candidates are:
boost::foreach_detail_::auto_any<boost::foreach_detail_::foreach_iterator<#0,#1>::type> end(const boost::foreach_detail_::auto_any_base &, boost::foreach_detail_::type2type<#0,#1> *, mpl_::bool_<0> *)
boost::foreach_detail_::auto_any<int> end(const boost::foreach_detail_::auto_any_base &, boost::foreach_detail_::type2type<#0 *,#1> *, mpl_::bool_<1> *)
boost::foreach_detail_::auto_any<boost::foreach_detail_::foreach_iterator<#0,#1>::type> end(const boost::foreach_detail_::auto_any_base &, boost::foreach_detail_::type2type<#0,#1> *, mpl_::bool_<1> *)
'   Prove.cpp   /ProvingGround  line 23 Semantic Error
Invalid arguments '
Candidates are:
boost::foreach_detail_::auto_any<boost::foreach_detail_::foreach_iterator<#0,#1>::type> begin(const boost::foreach_detail_::auto_any_base &, boost::foreach_detail_::type2type<#0,#1> *, mpl_::bool_<0> *)
boost::foreach_detail_::auto_any<#0 *> begin(const boost::foreach_detail_::auto_any_base &, boost::foreach_detail_::type2type<#0 *,#1> *, mpl_::bool_<1> *)
boost::foreach_detail_::auto_any<boost::foreach_detail_::foreach_iterator<#0,#1>::type> begin(const boost::foreach_detail_::auto_any_base &, boost::foreach_detail_::type2type<#0,#1> *, mpl_::bool_<1> *)
'   Prove.cpp   /ProvingGround  line 23 Semantic Error
Invalid arguments '
Candidates are:
boost::foreach_detail_::auto_any<#0 *> contain(#0 &, mpl_::bool_<0> *)
boost::foreach_detail_::auto_any<#0> contain(const #0 &, mpl_::bool_<1> *)
'   Prove.cpp   /ProvingGround  line 23 Semantic Error
Invalid arguments '
Candidates are:
boost::algorithm::detail::is_any_ofF<boost::range_value<#0>::type> is_any_of(const #0 &)
'   Prove.cpp   /ProvingGround  line 12 Semantic Error
Invalid arguments '
Candidates are:
#0 & split(#0 &, #1 &, #2, enum boost::algorithm::token_compress_mode_type)
'   Prove.cpp   /ProvingGround  line 12 Semantic Error
Invalid arguments '
Candidates are:
? * or_(#0 *, #1 *, #2 *)
? * or_(#0 *, #1 *)
'   Prove.cpp   /ProvingGround  line 23 Semantic Error
Invalid arguments '
Candidates are:
? * or_(#0 *, #1 *, #2 *)
? * or_(#0 *, #1 *)
'   Prove.cpp   /ProvingGround  line 23 Semantic Error
Invalid arguments '
Candidates are:
? * or_(#0 *, #1 *, #2 *)
? * or_(#0 *, #1 *)
'   Prove.cpp   /ProvingGround  line 23 Semantic Error
Invalid arguments '
Candidates are:
? * is_array_(const #0 &)
'   Prove.cpp   /ProvingGround  line 23 Semantic Error
Invalid arguments '
Candidates are:
? * is_array_(const #0 &)
'   Prove.cpp   /ProvingGround  line 23 Semantic Error
Invalid arguments '
Candidates are:
? * is_array_(const #0 &)
'   Prove.cpp   /ProvingGround  line 23 Semantic Error
Invalid arguments '
Candidates are:
? * and_(#0 *, #1 *, #2 *)
? * and_(#0 *, #1 *)
'   Prove.cpp   /ProvingGround  line 23 Semantic Error
Invalid arguments '
Candidates are:
? * and_(#0 *, #1 *, #2 *)
? * and_(#0 *, #1 *)
'   Prove.cpp   /ProvingGround  line 23 Semantic Error
Invalid arguments '
Candidates are:
? * and_(#0 *, #1 *, #2 *)
? * and_(#0 *, #1 *)
'   Prove.cpp   /ProvingGround  line 23 Semantic Error
Invalid arguments '
Candidates are:
? * and_(#0 *, #1 *, #2 *)
? * and_(#0 *, #1 *)
'   Prove.cpp   /ProvingGround  line 23 Semantic Error
Invalid arguments '
Candidates are:
? * and_(#0 *, #1 *, #2 *)
? * and_(#0 *, #1 *)
'   Prove.cpp   /ProvingGround  line 23 Semantic Error
Invalid arguments '
Candidates are:
? * and_(#0 *, #1 *, #2 *)
? * and_(#0 *, #1 *)
'   Prove.cpp   /ProvingGround  line 23 Semantic Error
  • 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-25T18:35:17+00:00Added an answer on May 25, 2026 at 6:35 pm

    I haven’t solved this issue (happens a lot particularly when I use boost it seems), but the root cause may lie in Eclipse’ CDT plug-in according to this thread. Brutal workaround is, as discussed in the page, to turn off code analysis feature.

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

Sidebar

Related Questions

I'm building a simple paint app and encountering this error given by the logcat:
Here is a code that I copied from the web /** * A simple
I use this code: http://blogswizards.com/plugin-development/sliding-boxes-and-captions-with-jquery On a simple gallery site I am building. Specifically
I'm building a simple Todo List application where I want to be able to
I am building a simple Django app that will use scribd to display documents.
I'm building a simple ASP.NET web application in VS 2008 with a SQL 2005
I'm building a simple ice sliding puzzle to test uses of allegro. So far
I'm building a simple accounting app to be used for personal finance. A user
I'm building a simple web-based RSS reader in Python, but I'm having trouble parsing
I'm building a simple 2d game,and I'm wondering if some better coders than I

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.