LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Compilation and locate errors in Vim (http://www.linuxquestions.org/questions/linux-software-2/compilation-and-locate-errors-in-vim-628586/)

ab1999com 03-17-2008 04:14 AM

Compilation and locate errors in Vim
 
Hi all,

in http://vimdoc.sourceforge.net/htmldoc/usr_30.html#30.1
it describes how to compile a project and locate the error with a simple example.

I have a project to compile, it contains some libraries( a b c) and a target executable file(binary).

the libraries a b c and the target four folders are in the src folder.
make folder is in the same folder as src.
root-
-src\
-a\
makefile
a.c aa.c aaaa.c aaaaaaa.c
-b\
makefile
b.c bbb.c bbbbb.c bbbbbb.c
-c\
makefile
c.c cc.c ccccc.c cccccccccc.c
-target\
makefile
d.c dd.c ddddd.c dddddddd.c

-make\
makefile

and there is another folder called make, inside it contains a Makefile,
the make file is as



SUBDIRS=../a ../b ../c ../target
.PHONY subdirs $(SUBDIRS)
all:$(SUBDIRS)

$(SUBDIRS):
make -C $@
../target: ../a ../b ../c


Compile the project in vim, if there are some error in the source code,
vim can not locate the file. The path is not right.


how could I resolve the problem?

thanks.


All times are GMT -5. The time now is 01:39 PM.