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 #45457 is a reply to message #45449] Tue, 17 November 2015 22:20 Go to previous message
SevenOfNine is currently offline  SevenOfNine
Messages: 4
Registered: November 2015
Junior Member
Hello Mirek,
thank you that you have send me the files which solve the problem.
Now I have discovered my general problem.
You have proposed to include iml_source.h, but this will not work because
I have not understood, that the inclusion needs also the two lines above:
#define IMAGECLASS SmallIconImg
#define IMAGEFILE <DrawApp/SmallIcon.iml>
#include <Draw/iml_source.h>

This seems to be a unit and if I miss any of the three lines it does not work.

I try several alternatives.
So I moves the inclusion of "iml_header.h" from the header file (DrawApp.h) to the c-file (DrawApp.c).
This works too, but only if all 3 lines per inclusion are added in this way:

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

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


My misunderstanding:
It was not clear for me, that the inclusion of iml_header.h or iml_source.h needs the 2 defines in front of its inclusion.
Althought the defines are entered in front of iml_header.h-inclusion,
both defines needs to be entered in front of iml_source.h-inclusion too.
Now: Understood!

Best Regards
Seven


 
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: Thu May 16 13:22:53 CEST 2024

Total time taken to generate the page: 0.02413 seconds