Monday, September 19, 2011

:make g++ not parsing

Hi, I hope this is the right place to post this.

I'm trying vim as my main IDE and text editor to see if I can
justifiably
replace the mainstream editors (e.g. Visual Studio, Code::Blocks).

I've been building my vim settings piece by piece, but I've come
across a
problem with the :make command, and I haven't found a solution to it.

The problem is when running :make, it correctly outputs the following:

----- Start -----
depbase=`echo src/main.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DPACKAGE_NAME=\"optify-core\" -DPACKAGE_TARNAME=\"optify-core\"
-DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"optify-core\ 0.1\"
-DPACKAGE_BUGREPORT=\"\" -I.        -g -O2 -MT src/main.o -MD -MP -MF
$depbase.Tpo -c -o src/main.o src/main.c++ &&\
mv -f $depbase.Tpo $depbase.Po
src/main.c++: In function 'int main(int, const char**)':
src/main.c++:22: error: 'paths' was not declared in this scope
src/main.c++:22: error: 'promptToSelectPaths' was not declared in this
scope src/main.c++:24: error: 'paths' was not declared in this scope
etc...
----- End -----

BUT, vim reports the following as errors only:

----- Start -----
1. depbase=`echo src/main.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\

2. g++ -DPACKAGE_NAME=\"optify-core\" -DPACKAGE_TARNAME=\"optify-core
\"
-DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"optify-core\ 0.1\"
-DPACKAGE_BUGREPORT=\"\" -I.        -g -O2 -MT src/main.o -MD -MP -MF
$depbase.Tpo -c -o src/main.o src/main.c++ &&\

3. mv -f $depbase.Tpo $depbase.Po
----- End -----

I have no errorformat setting specified. It seems more like the errors
are coming in a stream that vim isn't reading from.

MY QUESTION is why is it doing this, and how can I fix it?

--
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:

Post a Comment