Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Usage of Iml image data leads to linker error (If a static image is used, I cannot access it, e.g. assign the image to draw it)
Re: Usage of Iml image data leads to linker error [message #45443 is a reply to message #45441] Sat, 14 November 2015 17:07 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
SevenOfNine wrote on Sat, 14 November 2015 14:30
I assume it is a simple error on my side but ok.
If I draw an image with the image designer and
want to access the image e.g. to draw it on the application window
the compiler compiles it but the linker reported, that he does not find the reference:
"Nicht definierter Verweis auf 'SmallIconImg::Get(int)'"
means "Not defined reference on 'SmallIconImg::Get(int)'"

The main stuff of the programm is:

#define IMAGECLASS SmallIconImg
#define IMAGEFILE <DrawApp/SmallIcon.iml>
#include <Draw/iml_header.h>

and
void DrawApp::Paint(Draw& w)
{

    w.DrawRect(GetSize(), SColorFace());
    w.DrawImage(50, 50, SmallIconImg::Point());
}


I use the example from ...www.ultimatepp.org/srcdoc$Draw$ImgTutorial$en-us....
as template.
Shocked
I do not know, what I forgot to add.

Has anybody an idea about my mistake?

Can you help me?
Seven


Most likely "iml_source.h" include.

"iml_header.h" creates just declarations and is supposed to be in header. Real data are "inserted" by

#define IMAGECLASS SmallIconImg
#define IMAGEFILE <DrawApp/SmallIcon.iml>
#include <Draw/iml_source.h>


which should be in some .cpp file.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SqlVal to int (Typecast)
Next Topic: Printer's dialog shows up multiple times
Goto Forum:
  


Current Time: Fri May 17 00:36:43 CEST 2024

Total time taken to generate the page: 0.02555 seconds