Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » How to import iml from other class?
How to import iml from other class? [message #8724] |
Tue, 27 March 2007 22:37 |
guido
Messages: 169 Registered: April 2006
|
Experienced Member |
|
|
How to use .iml from other class?
If I have App.iml defined in App.cpp/hpp and a class Splash.cpp/hpp, what goes there precisely to use App.iml?
The GUI-tutorial answers this question sparsely with remarks about iml_header.h and iml_source.h. But I'm pulling my hairs out trying the put the headers and defines for App.iml in the proper place of Splash class files, going back an forward between undefined and redefined identifiers.
Guido
|
|
|
|
|
Re: How to import iml from other class? [message #8741 is a reply to message #8740] |
Wed, 28 March 2007 19:32 |
|
mirek
Messages: 14160 Registered: November 2005
|
Ultimate Member |
|
|
guido wrote on Wed, 28 March 2007 13:25 | Yes, I tried this. But then, I need to import Splash.hpp in App.cpp and this results in a redefinition error:
/home/guido/upp/uppsrc/Draw/iml_header.h:13: error: redefinition of ‘class CaterImg’
/home/guido/upp/uppsrc/Draw/iml_header.h:13: error: previous definition of ‘class CaterImg’
|
This looks like the header is being included twice.
Quote: |
upp is great in many ways, but for all that opaque (to me) preprocessor magic. Feels pretty low-level, for now.
Maybe I get the hang of it and see it differently, then.
|
Well, you can have either preprocessor magic, or external tools that do the same job less transparently - you would still have to include something and at least link in something.
BTW, a good way to get hand on it (and also, for us, to debug this stuff) is "Preprocess file" command in the build menu. I think it can help pretty well in this case too.
Mirek
|
|
|
Goto Forum:
Current Time: Sat Dec 07 22:59:09 CET 2024
Total time taken to generate the page: 0.01206 seconds
|