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 » ImageFile (iml) #include [SOLVED]
ImageFile (iml) #include [SOLVED] [message #18950] Sun, 02 November 2008 14:55 Go to previous message
sapiency is currently offline  sapiency
Messages: 56
Registered: September 2008
Member
hi,

I read the solution for using the images multiple cpp files ..

it says,

using in header:
#define IMAGECLASS NAME
#define IMAGEFILE <pathtofile/images.iml>
#include <Draw/iml_header.h>


and in sources:

#define IMAGECLASS NAME
#define IMAGEFILE <pathtofile/images.iml>
#include <Draw/iml_source.h>


I created one source for my images which I want to use in multiple header and sources. So I put the code for header and for the sources in files, which I include in my other files

#include "images-header.h"

in code1.h and code2.h

#include "images-sources.h"

in code1.cpp and code2.cpp

There were no problems with the compiler, but the linker stopped with errors ... "class NAME" redefined ...

is there a solution to use it in multiple files? It would help to keep the files smaller.

regards

reinhard

[Updated on: Mon, 24 January 2011 13:06] by Moderator

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: EXIF data access
Next Topic: Draw was added to plugin/png.
Goto Forum:
  


Current Time: Mon Apr 29 11:16:31 CEST 2024

Total time taken to generate the page: 0.02940 seconds