User forums > General (but related to Code::Blocks)
Compiling error!
daniel_ls:
When trying to compile a program, in C ++, appears an error message!
--- Code: ----------------- Build: unix in ADM ---------------
Compiling: ADMApp.cpp
In file included from /usr/include/wx-2.8/wx/platform.h:293,
from /usr/include/wx-2.8/wx/defs.h:21,
from /usr/include/wx-2.8/wx/event.h:15,
from /usr/include/wx-2.8/wx/app.h:20,
from /home/daniel/Desktop/ADM 1.0 multiplataforma/ADMApp.h:13,
from /home/daniel/Desktop/ADM 1.0 multiplataforma/ADMApp.cpp:10:
/usr/include/wx-2.8/wx/chkconf.h:23: fatal error: wx/msw/chkconf.h: File or directory not found
compilation terminated.
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
--- End code ---
The IDE I use is the CodeBlocks 10.05 with the GUI libraries wxWidgets 2.8.
The CodeBlocks dont't find the file chkconf.h but when I do a manual search in the directory usr/include/wx-2.8/wx i see that it exists.
Help me, please.
Thank you...
Jenna:
1. it's not Code::Blocks, that does not find chkconf.h, it's your compiler (note: C::B is an IDE not a compiler),
2. your wxWidgets seems to be configured as windows-version, (wx)msw is the setup for windows, not for *nix-systems.
Either your wxWidgets-install is totally messed up or you have a totally misconfigured project or a misconfigure toolchain or you tried to tweak some of the wxWidgets-files manually.
How did you create your wxWidgets-project ?
Do you try to create a multi-platform project ?
Be sure you do not compile a windows project with linux wxWidgets, use wx-config on linux.
daniel_ls:
I create a mult-plataform project, but i use in the build target `wx-config --cflags` and `wx-config --libs`.
I don't understanding when you saw:
--- Quote ---your wxWidgets seems to be configured as windows-version, (wx)msw is the setup for windows, not for *nix-systems.
--- End quote ---
and
--- Quote ---Either your wxWidgets-install is totally messed up or you have a totally misconfigured project or a misconfigure toolchain or you tried to tweak some of the wxWidgets-files manually.
--- End quote ---
How could I do to config wxWidgets as the linux version, since (wx) MSW is the configuration for Windows?
Jenna:
This
--- Quote from: daniel_ls on November 01, 2010, 04:07:04 pm ---/usr/include/wx-2.8/wx/chkconf.h:23: fatal error: wx/msw/chkconf.h: File or directory not found
--- End quote ---
points to a (wx)msw-configuration !!
Check your defines, includes, options (also global options), etc.
daniel_ls:
Thank you very much.
I found my mistake, but now he says the following.
What could it be?
--- Quote ---Desktop / ADM 1.0 platform / ADMMain.cpp | 82 | error: converting to execution character set: invalid multibyte or wide character
--- End quote ---
i'm braziliam, and some words have accents, for example, água(water).
any problem?
in windows, it had none.
Navigation
[0] Message Index
[#] Next page
Go to full version