# Undefined reference to \`wxGraphicsRenderer::CreateBitmap(wxB

**URL:** <https://www.ruby-forum.com/t/undefined-reference-to-wxgraphicsrenderer-createbitmap-wxb/181928>\
**Category:** wxRuby\
**Created:** [January 20, 2010, 10:46am UTC](https://www.ruby-forum.com/t/undefined-reference-to-wxgraphicsrenderer-createbitmap-wxb/181928 "2010-01-20T10:46:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![waydotnet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/91b2a8/32.png) [@waydotnet](https://www.ruby-forum.com/u/waydotnet)\
**Post date:** [January 20, 2010, 10:46am UTC](https://www.ruby-forum.com/t/undefined-reference-to-wxgraphicsrenderer-createbitmap-wxb/181928/1 "2010-01-20T10:46:56Z")

</div>

Hi to all,  
i’ve compiled wxWidgets with this options:

./configure --enable-optimise --enable-stl --enable-unicode  
–disable-threads --enable-static --with-opengl --disable-shared  
–enable-monolithic --disable-debug --with-libjpeg=builtin  
–with-libpng=builtin --with-zlib=builtin --enable-graphics\_ctx  
–enable-mediactrl --enable-unicode --with-libtiff=builtin  
–with-expat=builtin --enable-gui -enable-xrc --enable-mdi --enable-gif  
–enable-pcx --enable-iff --enable-png --enable-xpm

and also compiled StyledTextCtrl .

My system is :  
Windows xp sp3  
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]  
gcc.exe 3.4.5  
swig.exe 1.3.38  
rake 0.8.7

when compiled wxruby (from svn), i’ve recived this error:

c:\msys\MinGW\bin…\lib\gcc\mingw32\3.4.5…\mingw32\bin\ld.exe:  
warning: auto-importing has been activated without --enable-auto-import  
spe  
cified on the command line.  
This should work unless it involves constant data structures referencing  
symbols from auto-imported DLLs.  
C:\msys\1.0\src\wxWidgets-2.8.10/lib/libwx\_mswu-2.8.a(monolib\_graphcmn.o):graphcmn.cpp:(.text+0x3374):  
undefined reference to `wxGraphicsRenderer::CreateBitmap(wxBitmap  
const&)’  
collect2: ld returned 1 exit status  
rake aborted!  
Command failed with status (1): [g++ -shared -L.  
obj/AboutDialogInfo.o o…]

---

<div class="post-metadata">

**Author:** ![waydotnet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/91b2a8/32.png) [@waydotnet](https://www.ruby-forum.com/u/waydotnet)\
**Post date:** [January 21, 2010, 2:28pm UTC](https://www.ruby-forum.com/t/undefined-reference-to-wxgraphicsrenderer-createbitmap-wxb/181928/2 "2010-01-21T14:28:34Z")

</div>

[SOLVED]

IF i compile wxWidgests 2.8.10 i’ve this error:  
C:\msys\1.0\src\wxWidgets-2.8.10/lib/libwx\_mswu-2.8.a(monolib\_graphcmn.o):graphcmn.cpp:(.text+0x3374):  
undefined reference to `wxGraphicsRenderer::CreateBitmap(wxBitmap  
const&)’

If i compile with wxWidgets 2.8.9 WORK !!!

this is the gem :  
svn version: 2107  
[http://www.waydotnet.com/ruby/wxruby-ruby19-2.0.1.svn-x86-mingw32.gem](http://www.waydotnet.com/ruby/wxruby-ruby19-2.0.1.svn-x86-mingw32.gem)

Only problem when install without --no-rdoc

😃

Carlo Bertini
