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]
Re: ImageFile [message #18967 is a reply to message #18960] Sun, 02 November 2008 20:14 Go to previous messageGo to previous message
sapiency is currently offline  sapiency
Messages: 56
Registered: September 2008
Member
Hi Mirek,

thanks for you answer, I'm still a little bit confused , but I think I solved the problem ...

I have following files:
image-header.h (with #ifndef)
image-source.h (with #ifndef)
code_1.h (with #ifndef)
code_2.h (with #ifndef)
code_1.cpp
code_2.cpp

this works:
code_1.h includes image-header.h
code_1.cpp includes code_1.h, image-source.h
code_1.cpp use images

code_2.h includes code_1.h
code_2.cpp includes code_2.h
code_2.cpp use images

whenever I include image-source.h too in code_2.cpp, I get following message from the linker:

C:/upp/out/path/MINGW.Debug.Debug_full.Gui.Main.Mt\devicetree.o: In function `_ZN11OL_Controls3ImlEv':
C:/upp/uppsrc/Draw/iml_source.h:33: multiple definition of `OL_Controls::Iml()'
C:/upp/out/path/MINGW.Debug.Debug_full.Gui.Main.Mt\$blitz.o:C:/upp/uppsrc/Draw/iml_source.h:33: first defined here


object-file: devicetree -> code_2

regards

reinhard
 
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: Wed May 15 18:09:23 CEST 2024

Total time taken to generate the page: 0.02025 seconds