Wednesday, April 4, 2012

Clang and clang_complete plugin / Cygwin

Cygwin has started distributing the Clang compiler in January:

[ANNOUNCEMENT] New package: llvm/clang-3.0-1
http://cygwin.com/ml/cygwin/2012-01/msg00453.html

I installed the Cygwin clang packages and the clang_complete Vim
plugin from Github.

http://www.vim.org/scripts/script.php?script_id=3302
https://github.com/Rip-Rip/clang_complete

Then a simple test:

#include <iostream>
int main(void) {
std:: // <= second colon triggers completion
}

But alas, no completion; instead, an error; calling :messages reveals:

E486: Muster nicht gefunden: 686

That means "Pattern not found".

The error list for clang_complete contains:

tmp.cpp|| unknown argument: '-mtune=generic'
tmp.cpp|| unknown argument: '-march=i686'

I have grepped the plugin source for these options: they're not there.
I don't have them in my environment variables either. There's some
Python code coming with the plugin; haven't understood out how it all
ties together. Is anyone using this plugin on Cygwin and has figured
out how to avoid running into this error?

Michael

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: