User forums > Using Code::Blocks

Installed but can't compile

<< < (3/4) > >>

jsimmons:

--- Quote from: byo on August 15, 2005, 03:44:17 pm ---Have You added <wx-dir>/lib/mswdll into Your include directories (there's setup.h file which MUST be available somewhere in include paths)

--- End quote ---

Well, I started looking around in my CB install, and can't find wx anywhere, despite being told this:


--- Quote ---By the way... RC1-1 comes with wx2.4 rather than wx2.6

--- End quote ---

My impression from that statement was that wx 2.4  is included with the install, and I suspect now that it's not.  So I'm off to download 2.42...

Michael:
Well, I assume that if I create the app with the IDE, it should pretty much be able to find the files, especially if it asks me where to put them when I created the new project.
---------------------------------------------------------------------------------------------------------------------------------------------------------

Yes, I would have done the same assumption :), but similar experiences with other IDEs free or not have made me more carefully. Therefore in case of problems, I always check if the setting options are correctly.

For example, I have played a bit with CB and Qt 4. CB generated a project template, but it did not compile. Sure thing, as I did and do not have Qt 4 installed in my computer (just Qt 3).

I think that you have to check if all the libraries you use have their include/lib directories set correctly (project directories eventually too) and in the correct location. For example, I would assume that if I want to use Qt with CB, I have to install it and then set the include/lib directories in CB together with some pre-processor instructions (even if CB can generate automatically a template Qt project).

Best wishes,
Michael

byo:

--- Quote from: jsimmons on August 15, 2005, 04:24:32 pm ---My impression from that statement was that wx 2.4  is included with the install, and I suspect now that it's not.  So I'm off to download 2.42...

--- End quote ---

Yes, You have to download it, wxWidgets libraries are not supplied with C::B (only dll-s with binary version).

Installation step-by-step guide can be found inside wiki:

http://wiki.codeblocks.org/index.php/Tutorials

BTW. There are two important custom variables used inside C::B projects: WX_DIR and WX_CFG - these can help with directories

jsimmons:

--- Quote from: byo on August 15, 2005, 05:44:03 pm ---
--- Quote from: jsimmons on August 15, 2005, 04:24:32 pm ---My impression from that statement was that wx 2.4  is included with the install, and I suspect now that it's not.  So I'm off to download 2.42...

--- End quote ---

Yes, You have to download it, wxWidgets libraries are not supplied with C::B (only dll-s with binary version).

Installation step-by-step guide can be found inside wiki:

http://wiki.codeblocks.org/index.php/Tutorials

BTW. There are two important custom variables used inside C::B projects: WX_DIR and WX_CFG - these can help with directories

--- End quote ---

That fixed it. I now have the program compiling.  Many thanks.  Now for the easy part - converting the 500,000 line MFC project over to wxWidgets... :)

rickg22:
Hint: Redesign it from scratch. If you're using so much MFC you might need to redesign it with a multi-tier approach sooner or later, anyway ;-)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version