News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Just getting it set up w/wxWidgets...

Started by FlyingIsFun1217, January 28, 2007, 02:48:47 AM

Previous topic - Next topic

FlyingIsFun1217

Ok, downloaded the nightly.

When I try and run the exe though, I get:

Quote
This application has failed to start because wxmsw26u_gcc_cb.dll was not found. Re-installing the application may fix this problem.

How can I get it running?

Thanks again!
FlyingIsFun1217

FlyingIsFun1217

Nevermind, I was being an idiot.

I'll try it out now.

FlyingIsFun1217 :)

Biplab

#17
Download the following two files.

Quotehttp://prdownload.berlios.de/codeblocks/wxmsw26u_gcc_cb_wx2.6.3p2AndCbPatch_version3.7z
and
Quotehttp://prdownload.berlios.de/codeblocks/mingwm10.7z

Extract them in the folder where you find the codeblocks.exe file.  :)
Be a part of the solution, not a part of the problem.

FlyingIsFun1217

#18
Yeah, done and done. Heck, I even got far enough to be able to build a project that was created using wxDev-C++. Of course, I just deleted the files in the newly created wxWidgets project, etc.

What I would really like to know is: When installing wxWidgets through wxPack, I can choose to install the GCC libs and/or the dll. Obviously, the dll is MUCH smaller, and would be much better suited for my 20 gb hard drive. Is there a way I can get Code::Blocks to use the wxWidgets dll to compile a program? Or is that what "Use wxWidgets DLL" is going to do?

Also (edit), I installed the minGW compiler so that I could uninstall the CodeBlocks RC, but now I just get the error "\mingw\lib\crt2.o:crt1.c:(.text+0x16a):: undefined reference to `__cpu_features_init'
:: === Build finished: 1 errors, 0 warnings ===". What do I need to change?


Thanks again!
FlyingIsFun1217

Biplab

Quote from: FlyingIsFun1217 on February 02, 2007, 12:48:39 AM
Is there a way I can get Code::Blocks to use the wxWidgets dll to compile a program? Or is that what "Use wxWidgets DLL" is going to do?

You are right. Select that option.
Be a part of the solution, not a part of the problem.

FlyingIsFun1217

Cool.
Going back to my off-topic problem though, how can I fix the error the linker is giving me?

Thanks a million!
FlyingIsFun1217

Biplab

I overlooked your linking problem. It seems to me that you didn't install MinGW Runtime. Download it from-
Quotehttp://prdownloads.sourceforge.net/mingw/mingw-runtime-3.11.tar.gz?download
Be a part of the solution, not a part of the problem.

FlyingIsFun1217

Cool. How do I "install" it though?

Thank you very much!
FlyingIsFun1217

Biplab

Extract the contents of the file in C:\MinGW folder or to your MinGW installation folder.  :)
Be a part of the solution, not a part of the problem.

FlyingIsFun1217

Ok... :P
Now I get: "undefined reference to 'WinMain@16'".

AAAAHHHHH!!!!!!
FlyingIsFun1217 :)

Biplab

Quote from: FlyingIsFun1217 on February 03, 2007, 05:10:03 AM
Ok... :P
Now I get: "undefined reference to 'WinMain@16'".

AAAAHHHHH!!!!!!
FlyingIsFun1217 :)

Probably you didn't declare any WinMain function. Did you declare wxApp derived class and used IMPLEMENT_APP() macro? Please provide more details.
Be a part of the solution, not a part of the problem.

FlyingIsFun1217

Well, for some reason, all it took was a restart of Code::Blocks.

Now my only concern is that when trying to run the program, it wants wxbase28_gcc.dll. Is it expecting the dll of wxwidgets to run it since I compiled it with the dll?

How can I get to to be standalone?

Thanks again for your cooperation!
FlyingIsFun1217

Biplab

Don't link against dll. Uncheck the option Use wxWidgets DLL from wizard. You should also have static lib of wx in your system. If you are using wxPack then it will be there.
Be a part of the solution, not a part of the problem.

FlyingIsFun1217

So to be able to use the wxWidgets dll provided with wxPack, I HAVE to have it to run the program?

Ok, will use monolithic build.

Thanks!
FlyingIsFun1217

Biplab

Use the following thumb-rule to select wx lib.

  • Static - When you want your application to be self sufficient. Means don't rely upon external wx DLLs.
  • DLL - You wish your application exe size to be smaller.
  • Monolithic DLL - You'll distribute only one wx DLL.
  • Monolithic Static - It's same as using Static. It's your personal choice to select this one.
So just don't take your decision arbitrarily. I use DLL while developing as I have to recompile it frequently. During distribution I prefer static wx lib. Now it's your personal choice on selecting appropriate lib.  :)
Be a part of the solution, not a part of the problem.