Loading ...
Sorry, an error occurred while loading the content.

Re: Compile gvim w32 on cygwin error.

Expand Messages
  • A. J. Mechelynck
    ... I had no problem compiling. Here is my version listing (including command-line parameters for compilation and linking): VIM - Vi IMproved 6.3 (2004 June
    Message 1 of 2 , Mar 29 5:55 AM
    • 0 Attachment
      panshizhu@... wrote:
      > Hi,
      >
      > I tried to compile the win32 version gvim on Cygwin and got error in the
      > link stage, it seems that some additional lib should be linked?
      >
      > Any hints are welcome, thanks in advance.
      >
      > pansz-pc:/usr/src/vim-6.3-1/src$ make -fMake_cyg.mak
      > gcc -O3 -fomit-frame-pointer -freg-struct-return -malign-double
      > -fno-strength-reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_BIG -DWINVER=0x0400
      > -D_WIN32_WINNT=0x0400 -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV -DFEAT_MBYTE
      > -DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG
      > -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -mcpu=i386 -march=i386 -Iproto -s
      > -mno-cygwin -o gvim.exe gobj/buffer.o gobj/charset.o gobj/diff.o
      > gobj/digraph.o gobj/edit.o gobj/eval.o gobj/ex_cmds.o gobj/ex_cmds2.o
      > gobj/ex_docmd.o gobj/ex_eval.o gobj/ex_getln.o gobj/fileio.o gobj/fold.o
      > gobj/getchar.o gobj/main.o gobj/mark.o gobj/memfile.o gobj/memline.o
      > gobj/menu.o gobj/message.o gobj/misc1.o gobj/misc2.o gobj/move.o
      > gobj/mbyte.o gobj/normal.o gobj/ops.o gobj/option.o gobj/os_win32.o
      > gobj/os_mswin.o gobj/pathdef.o gobj/quickfix.o gobj/regexp.o gobj/screen.o
      > gobj/search.o gobj/syntax.o gobj/tag.o gobj/term.o gobj/ui.o gobj/undo.o
      > gobj/version.o gobj/vimrc.o gobj/window.o gobj/if_cscope.o gobj/netbeans.o
      > gobj/gui_beval.o gobj/gui.o gobj/gui_w32.o gobj/os_w32exe.o -luuid -lole32
      > -lwsock32 -mwindows -lcomctl32
      > gobj/netbeans.o(.text+0x19aa):netbeans.c: undefined reference to
      > `_gui_update_menus'
      > collect2: ld returned 1 exit status
      > make: *** [gvim.exe] Error 1
      > pansz-pc:/usr/src/vim-6.3-1/src$
      >
      >
      > --
      > Sincerely
      > Pan, Shizhu. ext: 2221
      >
      >
      >
      >
      I had no problem compiling. Here is my "version" listing (including
      command-line parameters for compilation and linking):



      VIM - Vi IMproved 6.3 (2004 June 7, compiled Mar 24 2005 16:04:11)
      MS-Windows 32 bit GUI version with OLE support
      Included patches: 1-68
      Compiled by antoine.mechelynck@...
      Big version with GUI. Features included (+) or not (-):
      +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
      +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist
      +cmdline_info +comments +cryptv +cscope +dialog_con_gui +diff +digraphs
      -dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi
      +file_in_path +find_in_path +folding -footer +gettext/dyn -hangul_input
      +iconv/dyn +insert_expand +jumplist +keymap +langmap +libcall
      +linebreak +lispindent +listcmds +localmap +menu +mksession
      +modify_fname +mouse +mouseshape +multi_byte_ime/dyn +multi_lang
      +netbeans_intg
      +ole -osfiletype +path_extra +perl/dyn -postscript +printer +python/dyn
      +quickfix +rightleft +ruby/dyn +scrollbind +signs +smartindent -sniff
      +statusline -sun_workshop +syntax +tag_binary +tag_old_static
      -tag_any_white +tcl/dyn -tgetent -termresponse +textobjects +title +toolbar
      +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
      +vreplace +wildignore +wildmenu +windows +writebackup -xfontset -xim
      -xterm_save -xpm_w32
      system vimrc file: "$VIM\vimrc"
      user vimrc file: "$HOME\_vimrc"
      2nd user vimrc file: "$VIM\_vimrc"
      user exrc file: "$HOME\_exrc"
      2nd user exrc file: "$VIM\_exrc"
      system gvimrc file: "$VIM\gvimrc"
      user gvimrc file: "$HOME\_gvimrc"
      2nd user gvimrc file: "$VIM\_gvimrc"
      system menu file: "$VIMRUNTIME\menu.vim"
      Compilation: gcc -O3 -fomit-frame-pointer -freg-struct-return
      -malign-double -fno-strength-reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_BIG
      -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 -DFEAT_PERL -DDYNAMIC_PERL
      -DDYNAMIC_PERL_DLL="perl58.dll" -DFEAT_PYTHON -DDYNAMIC_PYTHON
      -DDYNAMIC_PYTHON_DLL="python24.dll" -DFEAT_RUBY -DDYNAMIC_RUBY
      -DDYNAMIC_RUBY_DLL="msvcrt-ruby18.dll" -DDYNAMIC_RUBY_VER=18 -DFEAT_TCL
      -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL="tcl83.dll" -DDYNAMIC_GETTEXT
      -DDYNAMIC_ICONV -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME
      -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_OLE -DFEAT_GUI_W32
      -DFEAT_CLIPBOARD -mcpu=i386 -march=i386 -Iproto
      -I/cygdrive/c/Perl/lib/CORE -I/cygdrive/c/Python24/include
      -I/cygdrive/c/ruby/lib/ruby/1.8/i386-mswin32 -I/cygdrive/c/ruby/include
      -s -mno-cygwin
      Linking: gcc -s -o gvim.exe -luuid -lole32
      /cygdrive/c/ruby/lib/tclstub83.lib -lwsock32 -loleaut32 -lstdc++
      -mwindows -lcomctl32



      There are some differences due to the fact that I have OLE support and
      support for 4 interpreted languages. Otherwise I don't know enough to
      see where the problem lies.

      If you don't succeed to cure your problem, you may download my
      executables from a link at
      http://users.skynet.be/antoine.mechelynck/vim/#ajm

      You may also double-check your compile procedure with mine, which is
      explained at http://users.skynet.be/antoine.mechelynck/vim/compile.htm

      Best regards,
      Tony.
    Your message has been successfully submitted and would be delivered to recipients shortly.