2

Я пытаюсь следовать этому руководству http://tech.blog.box.net/2007/06/20/how-to-debug-php-with-vim-and-xdebug-on-linux/ и мне нужно скомпилируйте Vim со знаками и параметрами Python.

Я имею:

  • скачал последний источник с hg clone https://vim.googlecode.com/hg/ vim
  • раскомментировал функцию знаков в src/ feature.h
  • запустил ./configure --enable-perlinterp --enable-pythoninterp без ошибок
  • запустил make с этим выводом и ошибками, которые я не понимаю и не могу найти в Google:
$ make
gcc -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X_UNIX -no-cpp-precomp  -g -O2 -D_FORTIFY_SOURCE=1       -o objects/ex_cmds.o ex_cmds.c
ex_cmds.c: In function ‘ex_sign’:
ex_cmds.c:6736: error: ‘gui’ undeclared (first use in this function)
ex_cmds.c:6736: error: (Each undeclared identifier is reported only once
ex_cmds.c:6736: error: for each function it appears in.)
ex_cmds.c:6741: warning: assignment makes pointer from integer without a cast
ex_cmds.c: In function ‘sign_gui_started’:
ex_cmds.c:7013: warning: assignment makes pointer from integer without a cast
make: *** [objects/ex_cmds.o] Error 1

Будем весьма благодарны за любые смелые души, которые уже пошли по этому пути (и / или те, которые могут сказать мне, куда я могу двигаться отсюда)!

1 ответ1

2

Из последнего комментария на указанной вами странице,

If you get this error:

ex_cmds.c: In function ‘ex_sign’:
ex_cmds.c:6541: error: ‘gui’ undeclared (first use in this function)
ex_cmds.c:6541: error: (Each undeclared identifier is reported only once
ex_cmds.c:6541: error: for each function it appears in.)
ex_cmds.c:6546: warning: assignment makes pointer from integer without a cast
ex_cmds.c: In function ‘sign_gui_started’:
ex_cmds.c:6832: warning: assignment makes pointer from integer without a cast
make[1]: *** [objects/ex_cmds.o] Error 1

The fix for me was to NOT comment out the if statement for:

define FEAT_SIGN_ICONS

So, that define was not set when compiling.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками .