User forums > Using Code::Blocks

wxWidgets DLL problem

<< < (3/4) > >>

Biplab:

--- Quote from: Dastas on May 15, 2008, 05:16:31 pm ---How would I create such a project? I think I created the current project with Use wxWidgets DLL, built as monolithic library and Enable unicode all checked. Also use precompiled header is checked. Which one would need to be unchecked?

--- End quote ---

Uncheck the following option-

* Use wxWidgets DLL
Check the following option-

* Create Empty Project

Dastas:
I tried creating a project that way and I get the error "Cannot parse newly created Wxs file. wxSmith support is disabled."

The thing is there's only a .cbp file in that folder. Is this normal, considering I checked Create Empty Project? Do I just copy my old project's files in there now?

Biplab:

--- Quote from: Dastas on May 16, 2008, 05:19:02 pm ---The thing is there's only a .cbp file in that folder. Is this normal, considering I checked Create Empty Project?
--- End quote ---

That's normal. Empty project will create the project files only.


--- Quote from: Dastas on May 16, 2008, 05:19:02 pm ---Do I just copy my old project's files in there now?

--- End quote ---

Yes.

Dastas:
I did that, I copied and added all my old files to the new project, and when trying to build and run I get the error:

This application has failed to start because wxmsw28u_gcc_custom.dll was not found. Re-installing ...

I even completely uninstalled wxsmith and reinstalled and recompiled (monolithic=1, shared=0, unicode=1), and this file is nowhere in my wxsmith folder... and now my old project doesn't compile because of the same error. If I edit the project file in a text editor, changing all gcc_dll to gcc_lib, the error about the dll goes away, but I do get a bunch of undefined reference compiler errors.

So, the empty project idea doesn't compile because of that dll error even after a full reinstall. I don't get it, why does this happen? There's no reference to gcc_dll anywhere in that project file and I compiled wxsmith with the command:

mingw32-make -f makefile.gcc  MONOLITHIC=1 SHARED=0 UNICODE=1 BUILD=release

EDIT: I finally got it to compile right! And it also runs outside of the IDE just fine. There was a problem with the pch header, I think I forgot to check the option to use precompiled pch header, so I made another project with that enabled and it works just fine now.

One more thing: I added all my files to the project, but I still can't visually edit the form. It doesn't show up in resources.. any ideas how to get it to show (the .wxs file is only displayed as text)?

Biplab:

--- Quote from: Dastas on May 17, 2008, 06:19:07 pm ---One more thing: I added all my files to the project, but I still can't visually edit the form. It doesn't show up in resources.. any ideas how to get it to show (the .wxs file is only displayed as text)?

--- End quote ---

Because of this...


--- Quote from: Dastas on May 17, 2008, 06:19:07 pm ---I even completely uninstalled wxsmith...
--- End quote ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version