LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-17-2008, 03:14 AM   #1
ab1999com
LQ Newbie
 
Registered: Sep 2006
Posts: 2

Rep: Reputation: 0
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.
 
  


Reply

Tags
compile, error, locate, make, vim


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
compilation errors in g++ manikan Linux - Software 1 02-03-2006 05:31 AM
g77/Linux: how to locate floating point errors in my own shared libs? Stephan P. Programming 3 08-05-2005 02:23 PM
C++ compilation errors ??? glevine Programming 1 07-16-2004 03:15 PM
Compilation Errors ! vipinsharma Programming 0 06-01-2004 02:24 AM
gaim compilation errors felixnine Linux - Software 1 07-23-2003 01:54 AM


All times are GMT -5. The time now is 11:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration