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 » U++ Library support » Draw, Display, Images, Bitmaps, Icons » How to use the same .iml from multiple source files.
How to use the same .iml from multiple source files. [message #35289] Sat, 28 January 2012 23:15 Go to next message
Alboni is currently offline  Alboni
Messages: 214
Registered: January 2012
Location: Deventer, Netherlands
Experienced Member

If I use:

#define IMAGEFILE <myapp/myapp.iml>
#define IMAGECLASS myapp
#include <Draw/iml.h>

in a .h file that I include in multiple .cpp files I get linker errors.

What would be the correct way to do it?
Re: How to use the same .iml from multiple source files. [message #35291 is a reply to message #35289] Sun, 29 January 2012 10:32 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
There is iml_header.h for headers and iml_source.h for .cpp. iml.h just combines them.

See e.g. http://www.ultimatepp.org/examples$PainterExamples$en-us.htm l
Previous Topic: Paint dashed polyline
Next Topic: Centering text in a rectange
Goto Forum:
  


Current Time: Fri Apr 19 02:11:36 CEST 2024

Total time taken to generate the page: 0.03556 seconds