User forums > Using Code::Blocks

New to Code Blocks

<< < (4/7) > >>

Seronis:
Are you using the RC2 build or a nightly build or SVN ?   You get the most stable response if you are using something that has been released SINCE RC2.

DaveK:
version 1.0rc2 is the version I have.

DaveK:
this gets worse. I can't even compile the sample programs found in the wx/samples directory. For example I try to compile Calendar and I get wxStatusBarBeneric has not been declared. I try to compile access and it gets to linking but it gives me a few (well a lot) of undefined references. Here is the first undefined line

vc_mswunivudll\base\src\common\filename.o:filename.cpp:(.text+0x180e): undefined reference to 'CoCreateInstance@20'
vc_mswunivudll\base\src\common\filename.o:filename.cpp:(.text+0x1830): undefined reference to 'IID_IPersistFile'
vc_mswunivudll\base\src\common\regex.o:regex.cpp:(.text+0x84): undefined reference to 'wx_regfree'

I apologize if the solution for this is extremely simple or I forgot to perform some task, however I believe I followed the instructions to installing mingw32 and for compiling wxWidgets. That is I followed that tutorial linked above. Do these error mean I haven't fully compiled wxWidgets or forgot a step? Should I perhaps recompile? The version of wxWidgets I downloaded was a stable version so I'm a bit skeptical that wxWidgets is faulty.

Thanks for any help!  :o

Ceniza:
Please remove RC2 and install a nightly build first :)

BTW, are you trying to link a version of wxWidgets compiled with MSVC using MinGW?

vc_mswunivudll <-- look suspicious.... VC and Univ...

Pecan:

--- Quote from: DaveK on July 22, 2006, 04:05:22 pm ---this gets worse. I can't even compile the sample programs found in the wx/samples directory. For example I try to compile Calendar and I get wxStatusBarBeneric has not been declared. I try to compile access and it gets to linking but it gives me a few (well a lot) of undefined references. Here is the first undefined line

vc_mswunivudll\base\src\common\filename.o:filename.cpp:(.text+0x180e): undefined reference to 'CoCreateInstance@20'
vc_mswunivudll\base\src\common\filename.o:filename.cpp:(.text+0x1830): undefined reference to 'IID_IPersistFile'
vc_mswunivudll\base\src\common\regex.o:regex.cpp:(.text+0x84): undefined reference to 'wx_regfree'

I apologize if the solution for this is extremely simple or I forgot to perform some task, however I believe I followed the instructions to installing mingw32 and for compiling wxWidgets. That is I followed that tutorial linked above. Do these error mean I haven't fully compiled wxWidgets or forgot a step? Should I perhaps recompile? The version of wxWidgets I downloaded was a stable version so I'm a bit skeptical that wxWidgets is faulty.

Thanks for any help!  :o

--- End quote ---
CoCreateInstance is in a minGW libole32.a, so include ole32 in build options; linker; link libraries.

IPersistFile is in libuuid in minGW, so include uuid in build options; linker; link libraries.

wx_regfree in is the widgets /lib either in the libwxmsw26u (if you use unicode monolithic) or libwxregexu for (unicode non-monolithic) Its' name will be without  the 'u' if you made an ansi widgets.



EDIT: Ceniza posted before me. You guys need to give me a turn  :D
  Oh well.. guess I shouldn't leave that slug trail...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version