Compilation and locate errors in Vim
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.
a.c aa.c aaaa.c aaaaaaa.c
b.c bbb.c bbbbb.c bbbbbb.c
c.c cc.c ccccc.c cccccccccc.c
d.c dd.c ddddd.c dddddddd.c
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)
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?
|All times are GMT -5. The time now is 05:14 AM.|