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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:12:25+00:00 2026-06-15T18:12:25+00:00

I am trying to use clang_complete as a vim C++ completion. I must note

  • 0

I am trying to use clang_complete as a vim C++ completion.
I must note that I am using pathogen too.
I sourced the vimball provided for clang-pathogen and put everything in my ~/.vim/bundle/Clang_complete directory and everything worked as magic…
My STL and Boost completion works fine.

Here is what I did:


1/create a test_qt.cpp file

#include <QApplication>
#include <QWidget>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QWidget window;
window.resize(250, 150);

window.setWindowTitle("Simple example");
window.show();
return app.exec();
}

2/ran qmake -project


3/ran qmake -o Makefile testFiles.pro


4/ran make

 make
 g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o test_qt.o test_qt.cpp
 g++ -m64 -Wl,-O1 -o testFiles test_qt.o    -L/usr/lib/x86_64-linux-gnu -lQtGui -lQtCore -lpthread 

5/ ran ./testFiles and everything went fine, I got a stupid window…

So I don’t understand why I cannot get qt completion…
My Makefile is correctly generated, what should I do ?
I tried to run

statquant@euclide:~/.vim/testFiles$ make CC= '~/.vim/bundle/Clang_Complete-Pathogen/bin/cc_args.py' CXX='~/.vim/bundle/Clang_Complete-Pathogen/bin/cc_args.py'

But got :

make: Nothing to be done for `/home/statquant/.vim/bundle/Clang_Complete-Pathogen/bin/cc_args.py'.
  • 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-15T18:12:26+00:00Added an answer on June 15, 2026 at 6:12 pm

    First of all, you have redundant whitespace in your command:

    make CC=<HERE>'~/.vim/bundle/Clang_Complete-Pathogen/bin/cc_args.py' CXX='~/.vim/bundle/Clang_Complete-Pathogen/bin/cc_args.py'
    

    Your should remove it. Secondly your command is wrong – you didn’t specify compilers. To summarize, it should look like this:

    make CC='~/.vim/bundle/Clang_Complete-Pathogen/bin/cc_args.py gcc' CXX='~/.vim/bundle/Clang_Complete-Pathogen/bin/cc_args.py g++' -B
    

    This is because, essentially, cc_args.py will act as a wrapper (for compiler executable) to record which -I, -D, and other flags are passed during compilation of your project. It will then cleverly forward all flags to the compiler itself – so the project is built correctly. Invoke :h clang_complete-cc_args and see cc_args.py for better understanding – it is trivial.

    NOTE: -B flag is used to force make to build, regardless of whether your current build is up -to-date or not. This way, .clang_complete file is always up-to-date.

    Finally, if after all it still does not work, then it means that qmake generates makefile which does not respect CC and CXX environment variables, but rather hard-coded paths of compiler executables. I don’t remember if this is the case with qmake, but once again, if all fails, then this is the only reason – which you can easily check by inspecting the generated makefile.

    Good luck.

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

Sidebar

Related Questions

I'm trying to use the std::shared_ptr in clang++(clang version 3.1 (trunk 143100)) using libstdc++(4.6.1).
I work with Microchip PIC microcontrollers. I'm trying use clang for autocompletion in Vim.
I am trying to use the KeyChainitemwrapper provided by apple. My project is using
I'm trying to get GCC (or clang) to consistently use the SSE instruction for
I am trying to initialize a struct using named attributes in a way that
I'm trying to use clang to profile a project I'm working on. The project
I'm trying use rich:suggestionbox . I went through the tutorial provided by the Richfaces.
I am trying to compile a small c++ program using clang with the default
I've got a project built with SCons and I'm trying to use the Clang
I have this code that im trying to use to capture audio data. However

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.