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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:35:36+00:00 2026-06-07T13:35:36+00:00

I am a fairly novice programmer who recently started using boost. After successfully linking

  • 0

I am a fairly novice programmer who recently started using boost. After successfully linking the libraries with cmake, I have noticed that my vim (syntastic plugin I think) which does a great job at highlighting syntax errors. But ever since i started including boost libraries, it just stops at the #include statement with (no such file / directory ) and fails to show up any syntax errors whatsoever in the rest of the file. I have search all over the place but I am unable to find a workaround which allows me to syntax check bad code prior to the compilation stage. any help will be appreciated.
I am unable to post screenshots (too low rating) but will post code for whatever it is worth

#include <iostream>
#include <boost/regex.hpp>     <--------------syntax error (though it compiles fine)
#include <algorithm>

using namespace std;

void testMatch(const boost::regex& ex,const string st){
  cout<<"Matching" <<st <<endl;
  if(boost::regex_match(ex,st)){
    cout<<"matches"<<endl
  }
  else cout<<"oops"; }

  void testSearch(const boost::regex& ex, const string st){
    cout<<"Searching"<<endl;





  }
  • 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-07T13:35:40+00:00Added an answer on June 7, 2026 at 1:35 pm

    If you are using the Syntastic plugin, take a look at the file in

    syntastic/syntax_checkers/cpp.vim
    

    there are lots of language specific options that can be set, I think the one you’ll want is

    let g:syntastic_cpp_include_dirs=['path/to/boost/files']
    

    this lets the sytax checker know that there are other places to look for included files besides the default ones.

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

Sidebar

Related Questions

So I would call myself a fairly novice programmer as I focused mostly on
I am a fairly novice Java programmer and I am currently working on a
I have a fairly novice understanding of CSS and HTML, and I'm trying to
Am fairly new to using MySQL and a total novice at Perl but am
I'm a fairly novice tester, but have been trying to get better at TDD
Fairly straightforward question here, but I can't seem to find someone who has asked
Fairly exotic it seems to me. We recently upgraded/migrated from Windows Server 2003 to
Fairly simple issue which is solved in PHP by using a static variable. private
Fairly simple question: I have an init method on my class that has the
I'm a relative VBA novice, and designing a fairly complex macro that can 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.