[Wine] winegcc and 'undefined reference's for names from gdi32
Тихон Тарнавский
tikhon at lexpr.ru
Thu Mar 26 09:30:29 CDT 2009
On Thu, 26.03.2009 14:31:32 , Тихон Тарнавский wrote:
> Hello!
>
> Problem with winegcc. Could you please write me where is my mistake?
> t:~$ LANG=C make pc
> winegcc -o inkdemo.pc src/*.c -linkview -lfreetype -ljpeg -lz
> /usr/local/lib/libinkview.a(hw_emulator.o): In function `eink_waveform':
> hw_emulator.c:(.text+0xa22): undefined reference to `SetBitmapBits'
> hw_emulator.c:(.text+0xa73): undefined reference to `BitBlt'
> /usr/local/lib/libinkview.a(hw_emulator.o): In function `hw_init':
> hw_emulator.c:(.text+0xd76): undefined reference to
> `CreateCompatibleDC'
> hw_emulator.c:(.text+0xdce): undefined reference to `CreateBitmap'
> hw_emulator.c:(.text+0xde7): undefined reference to `SelectObject'
> /usr/local/lib/libinkview.a(hw_emulator.o): In function `WindowProc':
> hw_emulator.c:(.text+0xf03): undefined reference to `BitBlt'
> /usr/bin/ld: inkdemo.pc.exe.so: hidden symbol `CreateCompatibleDC'
> isn't defined
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> collect2: ld returned 1 exit status
> winegcc: gcc failed
> make: *** [inkdemo.pc] Error 2
>
I misprinted CFLAGS variable, and so missed -mwindows option. Sorry.
--
С уважением,
Тихон Тарнавский.
More information about the wine-users
mailing list