Wednesday, February 29, 2012

Re: problems building vim with cygwin (Make_cyg.mak)

I've just downloaded the newest version of cygwin (1.7.11) and the hg
version of vim (7.3.462) and using windows 7.
change src/Make_cyg.mak and src/GvimExt/Make_cyg.mak , gcc ==>gcc-3,
g++ ==> g++-3
make -f Make_cyg.mak works without problem.

:version shows
Compilation: gcc-3 -O3 -fomit-frame-pointer -freg-struct-return
-fno-strength-reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_BIG
-DWINVER=0x0400 -D_WIN32_WI
NNT=0x0400 -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV -DFEAT_MBYTE
-DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG
-DFEAT_GUI_W32 -DFEAT_C
LIPBOARD -march=i386 -Iproto -s -mno-cygwin
Linking: gcc-3 -s -o gvim.exe -luuid -lole32 -lwsock32 -mwindows
-lcomctl32 -lversion

and it seems that the only libraries used are uuid, ole32, wsock32,
windows, comctl32 and version.


On Wed, Feb 29, 2012 at 11:58 PM, Charles E Campbell Jr
<drchip@campbellfamily.biz> wrote:
> Hello,
>
> I've been having some problems compiling vim with
>
>  make -f Make_cyg.mak
>
> using cygwin and vista.  In particular,
>
> gobj/os_win32.o:os_win32.c:(.text+0x1f5): undefined reference to `_wcsicmp'
> gobj/os_win32.o:os_win32.c:(.text+0x24f2): undefined reference to `__wmkdir'
> gobj/os_win32.o:os_win32.c:(.text+0x3d10): undefined reference to `__wopen'
> gobj/os_win32.o:os_win32.c:(.text+0x3da1): undefined reference to `__wfopen'
> gobj/os_mswin.o:os_mswin.c:(.text+0x19da): undefined reference to `__wchdir'
> gobj/os_mswin.o:os_mswin.c:(.text+0x1b13): undefined reference to `__wstat'
> gobj/os_mswin.o:os_mswin.c:(.text+0x1ee4): undefined reference to
> `__wfullpath'
> gobj/os_mswin.o:os_mswin.c:(.text+0x201d): undefined reference to
> `__wfullpath'
> gobj/os_mswin.o:os_mswin.c:(.text+0x3f0e): undefined reference to
> `_IID_IPersistFile'
> gobj/if_cscope.o:if_cscope.c:(.text+0x26b5): undefined reference to
> `__open_osfhandle'
> gobj/if_cscope.o:if_cscope.c:(.text+0x26f9): undefined reference to
> `__open_osfhandle'
>
> I tried searching for the libraries:  nm -A *.a */*.a */*/*.a | fgrep wmkdir
>
> but was unable to find the library holding these functions.  Help would be
> appreciated!
>
> Regards,
> Chip Campbell
>
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: