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 » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » multiple classes include-problem
Re: multiple classes include-problem [message #14425 is a reply to message #14417] Tue, 26 February 2008 10:22 Go to previous messageGo to previous message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
Ok, it seems to be a problem with my IMAGECLASS:

Linking...
editdialog.obj : error LNK2005: "public: static class Upp::Iml & __cdecl MyImg::Iml(void)" (?Iml@MyImg@@SAAAV0Upp@@XZ) already defined in 
	prohibisZA.obj


I include Class1.h in both Class1 and Class2, so this define in Class1 seems to be the problem:

#define IMAGECLASS MyImg
#define IMAGEFILE <prohibisZA/prohibisZA.iml>


How can i use #ifndef in this case?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Template problem
Next Topic: Optimized memcmp for x86
Goto Forum:
  


Current Time: Mon May 13 16:15:38 CEST 2024

Total time taken to generate the page: 0.02755 seconds