User forums > Using Code::Blocks
SmartWin test apps won't compile
Buffalo:
I want to try out SmartWin, but run into some problems.
I read earlier threads regarding SmartWin here on CodeBlocks Forum, but they didn't help.
I have compiled SmartWin++ and all demos with MinGW, using the makefile included with smartwin.
I can start a new Smartwin project using the codeblocks template, and it compiles and runs fine. (some warnings though)
But if I open one of the test apps. ( I tried with canvas. )
The includes dosn't work. I tried import VCC project, didn't work either.
I have added the directories c:\SmartWin and C:\SmartWin\Include in Global compiler settings in CodeBlocks.
And I copied "libsmartwin.a" to C:\mingw\lib . (Advise from other thread)
The error occurs in WidgwtButton.h line 31:
#include "../MessageMapControl.h"
Error message:
C:\SmartWin\include\smartwin\widgets\WidgetButton.h:31: ../MessageMapControl.h: No such file or irectory
There are dozens like errors following.
How can I configure Codeblocks, to compile SmartWin++ Test apps, without having to configure a project for each individually?
Michael:
--- Quote from: Buffalo on May 20, 2006, 12:49:27 pm ---Error message:
C:\SmartWin\include\smartwin\widgets\WidgetButton.h:31: ../MessageMapControl.h: No such file or irectory
--- End quote ---
Hello,
The problem is that it cannot find the MessageMapControl.h file. Probably you have not added the correct include directory. Anyway, try under Settings-->Global compiler settings-->other and check one or both boxes "Explicitely add...". May be it can help.
Best wishes,
Michael
Buffalo:
The includes should be correct, but apparently they are not.... ?
It should only be nescessary to include smartwin, and the lib, I suspect that either is not passed to compiler or linker?
Seems like Thomas and others had it running some time back, maybe something has changed since then?
Or maybe I missed something, reading the old threads.
When using the CodeBlocks templates, it is possible to create projects, that include stuff that is relevant for the particular project.
Is it possible, to use a template for existing code? Because the SmartWin template works fine.
It would be preferably to defining a lot of global/constant include directories, which could result in conflicts because one project might use includes meant for another type of project.
I hope I'm not speaking total nonsense here.. :lol:
Michael:
--- Quote from: Buffalo on May 20, 2006, 10:54:51 pm ---The includes should be correct, but apparently they are not.... ?
It should only be nescessary to include smartwin, and the lib, I suspect that either is not passed to compiler or linker?
--- End quote ---
May be the problem is that the start of search for the include files does not lead to one of the specified included directory (as a relative path is used). Normally the starting point is where the project file is located.
Best wishes,
Michael
Buffalo:
I am not sure what you mean.. :oops:
My smartwin is in default c:\smartwin, and my projects can be all over the place.. :shock:
I think it uses relative paths. If that is the problem, I have no idea how to fix it...
I guess I will have to make the global settings...
Navigation
[0] Message Index
[#] Next page
Go to full version