User forums > Using Code::Blocks
New to Code Blocks
DaveK:
I think we are close. Here is what I have done for a summary
installed nightly build July 23rd.
Installed wxmsw26u_gcc_cb.dll. This is located in the CodeBlocks directory.
installed 6.3-2 version of GDB. which was zipped with specific path information. I simply unzipped the 7z file into the CodeBlocks directory maintaining the path information found in the zip file.
reinstalled wxWidgets 2.6.3
Recompiled wxWidgets using the mingw32 version I already had. Compile ran through fine
Opened codeBlocks. Works wonderfully now and looks better!
Open a wxWidgets sample called access. Said yes to all questions as it opened.
Compiled access and was able to make it past the wx/msw/wx.rc not found by setting up the right directory structure under the project options->directory tab. Got past a wx/setup.h not found error by just copying setup.h from wx/msw into wx/
It compiles but will not link
link errors:
undefined reference to 'wxAppConsole::CheckBuildOptions(char...)
undefined reference to 'wxApp::wxApp()
and so on to 50. Says there is more.
Obviously my linking information in not correct? Can anyone provide me with help in what I need to fix so this can link?
Thanks for the help thus far! :)
iw2nhl:
--- Quote from: DaveK on July 23, 2006, 05:36:50 pm ---installed 6.3-2 version of GDB. which was zipped with specific path information. I simply unzipped the 7z file into the CodeBlocks directory maintaining the path information found in the zip file.
--- End quote ---
GDB had to be put in the MinGW dir, not the C::B one!
Pecan:
--- Quote from: DaveK on July 23, 2006, 05:36:50 pm ---I think we are close. Here is what I have done for a summary
installed nightly build July 23rd.
Installed wxmsw26u_gcc_cb.dll. This is located in the CodeBlocks directory.
installed 6.3-2 version of GDB. which was zipped with specific path information. I simply unzipped the 7z file into the CodeBlocks directory maintaining the path information found in the zip file.
reinstalled wxWidgets 2.6.3
Recompiled wxWidgets using the mingw32 version I already had. Compile ran through fine
Opened codeBlocks. Works wonderfully now and looks better!
Open a wxWidgets sample called access. Said yes to all questions as it opened.
Compiled access and was able to make it past the wx/msw/wx.rc not found by setting up the right directory structure under the project options->directory tab. Got past a wx/setup.h not found error by just copying setup.h from wx/msw into wx/
It compiles but will not link
link errors:
undefined reference to 'wxAppConsole::CheckBuildOptions(char...)
undefined reference to 'wxApp::wxApp()
and so on to 50. Says there is more.
Obviously my linking information in not correct? Can anyone provide me with help in what I need to fix so this can link?
Thanks for the help thus far! :)
--- End quote ---
You're mixing up a ansi setup.h with a unicode widgets dll.
If you're going to copy setup.dll there is one for .../mswu (unicode) and one for .../msw (ansi). But I wouldnt copy them at all. I'd just add a reference to the correct one into the build options/directories/compiler section.
DaveK:
I am literally at my wits end. I have spent hours on this and I can't seem to get further even if I remove and reinstall everything according to the links you provide me. I either get a "wx/setup.h directory not found (even after adding the directory to the project build options, or I get linking errors like _imp__wxframeNameStr. I really don't understand why this is so hard for me to figure out or even setup, but after spending 3 hours today, 2 hours yesterday and 1 hour the day before and haven't still be able to compile a single wxWidgets file in codeblocks I'm getting to the point where i'm about to throw my hands up in the air and say this is worth my time. But I really would love to see wxWidgets work for here. I have no clue what I am doing wrong. I believe I have followed the instructions. They seem like a no-brainer. Why would Codeblocks be giving me this much grief.
I'm taking a nap. :(
Pecan:
Turn on Menu/Settings/compiler and debugger/other/compiler logging/Full command line.
Run your compile and copy/paste the compiler command line from Build Log message window to the forum here.
Lets see what cflags and libs are specified.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version