On Tuesday, May 5, 2015 at 5:00:10 PM UTC+2, Cesar wrote:
> By compiling on Windows 7 with mingw32 I still get:
> 
> [...]
> make -C GvimExt -f Make_ming.mak CROSS=no CROSS_COMPILE=
> make[1]: Entering directory `/home/caesar/vim/src/GvimExt'
> g++ -O2 -DFEAT_GETTEXT -c gvimext.cpp -o gvimext.o
> windres --preprocessor="g++ -E -xc" -DRC_INVOKED --input-format=rc 
> --output-format=coff -DMING gvimext_ming.rc -o gvimext.res
> g++ -shared -static-libgcc -static-libstdc++ -O2 -s -o gvimext.dll \
>                  -Wl,--enable-auto-image-base \
>                  -Wl,--enable-auto-import \
>                  -Wl,--whole-archive \
>                          gvimext.o gvimext.res gvimext_ming.def \
>                  -Wl,--no-whole-archive \
>                          -luuid
> gvimext.o:gvimext.cpp:(.text+0x10a0): undefined reference to 
> `_imp__CreateCompatibleDC@4'
> gvimext.o:gvimext.cpp:(.text+0x10bc): undefined reference to 
> `_imp__CreateCompatibleBitmap@12'
> gvimext.o:gvimext.cpp:(.text+0x10c2): undefined reference to 
> `_imp__SelectObject@8'
> gvimext.o:gvimext.cpp:(.text+0x113c): undefined reference to 
> `_imp__DeleteDC@4'
> gvimext.o:gvimext.cpp:(.text+0x12a9): undefined reference to 
> `_imp__DeleteObject@4'
> c:/progs/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe:
>  
> gvimext.o: bad reloc address 0x0 in section `.data'
> collect2.exe: error: ld returned 1 exit status
> make[1]: *** [gvimext.dll] Error 1
> make[1]: Leaving directory `/home/caesar/vim/src/GvimExt'
> make: *** [GvimExt/gvimext.dll] Error 2
> Error by compiling gvim.exe

Had a similar problem, fixed it by adding -lgdi32 to LIBS (line 50) in 
GvimExt\Make_ming.mak.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui