Solved it.
Just had to run the 'clean' target to get rid of old object files.

Regards

On 4/5/2012 12:10 PM, Kerneels Roos wrote:
Hi,

Trying to compile gvim on Windows using Mingw and msys, with debugging, OLE and Netbeans debugging enabled.

Can successfully compile gvim with debugging and Netbeans debugging, but when adding OLE I'm getting this error:

gobjd/if_ole.o:c:\Projects\vim\src\vim\src/if_ole.cpp:351: undefined reference t
o `vim_free_in_input_buf'
collect2: ld returned 1 exit status
make: *** [gvimd.exe] Error 1


Are there specific steps for compiling with OLE support added?

To compile with DEBUG and NBDEBUG support I did the following:
1. DEBUG=yes inside Make_ming.mak
2. add NBDEBUG=yes inside Make_ming.mak (although referenced there it isn't set there, so I just added it)
3. $ make -f Make_ming.mak

For OLE I just also enable it via OLE=yes in that same make file.

Below is the full comilation output:


Kerneels@markus /c/Projects/vim/src/vim/src
$ make -f Make_ming.mak
gcc --enable-auto-import -Iproto -DWIN32 -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 - DHAVE_PATHDEF -DFEAT_BIG -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT -DFEAT _OLE -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DNBDEBUG -DFEAT_GUI_W32 -DFEAT_CLIPBOAR D -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV -pipe -w -march=i3 86 -Wall -g -fstack-check --enable-auto-import -mwindows --enable-auto-import -o gvimd.exe gobjd/blowfish.o gobjd/buffer.o gobjd/charset.o gobjd/diff.o gobjd/di graph.o gobjd/edit.o gobjd/eval.o gobjd/ex_cmds.o gobjd/ex_cmds2.o gobjd/ex_docm d.o gobjd/ex_eval.o gobjd/ex_getln.o gobjd/fileio.o gobjd/fold.o gobjd/getchar.o gobjd/hardcopy.o gobjd/hashtab.o gobjd/main.o gobjd/mark.o gobjd/memfile.o gobj d/memline.o gobjd/menu.o gobjd/message.o gobjd/misc1.o gobjd/misc2.o gobjd/move. o gobjd/mbyte.o gobjd/normal.o gobjd/ops.o gobjd/option.o gobjd/os_win32.o gobjd /os_mswin.o gobjd/pathdef.o gobjd/popupmnu.o gobjd/quickfix.o gobjd/regexp.o gob jd/screen.o gobjd/search.o gobjd/sha256.o gobjd/spell.o gobjd/syntax.o gobjd/tag .o gobjd/term.o gobjd/ui.o gobjd/undo.o gobjd/version.o gobjd/vimrc.o gobjd/wind ow.o gobjd/if_cscope.o gobjd/netbeans.o gobjd/gui.o gobjd/gui_w32.o gobjd/gui_be val.o gobjd/os_w32exe.o gobjd/if_ole.o -lkernel32 -luser32 -lgdi32 -ladvapi32 -l comdlg32 -lcomctl32 -lversion -lwsock32 -loleaut32 -lstdc++ -lole32 -luuid

Info: resolving vtable for __cxxabiv1::__si_class_type_info by linking to __imp_
__ZTVN10__cxxabiv120__si_class_type_infoE (auto-import)
Info: resolving vtable for __cxxabiv1::__class_type_info by linking to __imp___Z
TVN10__cxxabiv117__class_type_infoE (auto-import)
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: warning: a uto-importing has been activated without --enable-auto-import specified on the c
ommand line.
This should work unless it involves constant data structures referencing symbols
 from auto-imported DLLs.
gobjd/if_ole.o:c:\Projects\vim\src\vim\src/if_ole.cpp:351: undefined reference t
o `vim_free_in_input_buf'
collect2: ld returned 1 exit status
make: *** [gvimd.exe] Error 1



--
Kerneels Roos
Cell: +27 (0)79 696 6038
Skype: cornelis.roos

--
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui