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++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Strange build error only after changing
Strange build error only after changing [message #13812] Tue, 29 January 2008 00:32 Go to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
Hi!

I found a really strange build error. I have some sources on the net. I download them, compile, link, everything is OK. I add an inline function to the main .h, still compiles. I use it in one of the .cpp files, and I get:

ToolsDropPane.obj : error LNK2005: "public: static class Upp::Iml & __cdecl CBPImages::Iml(void)" (?Iml@CBPIm
	ages@@SAAAV0Upp@@XZ) already defined in $blitz.obj
ToolsDropPane.obj : error LNK2005: "public: static class Upp::Image __cdecl CBPImages::Get(int)" (?Get@CBPIma
	ges@@SA?AVImage@Upp@@H@Z) already defined in $blitz.obj
ToolsDropPane.obj : error LNK2005: "public: static class Upp::Image __cdecl CBPImages::Get(char const *)" (?G
	et@CBPImages@@SA?AVImage@Upp@@PBD@Z) already defined in $blitz.obj
ToolsDropPane.obj : error LNK2005: "public: static int __cdecl CBPImages::Find(class Upp::String const &)" (?
	Find@CBPImages@@SAHABVString@Upp@@@Z) already defined in $blitz.obj
ToolsDropPane.obj : error LNK2005: "public: static int __cdecl CBPImages::Find(char const *)" (?Find@CBPImage
	s@@SAHPBD@Z) already defined in $blitz.obj
ToolsDropPane.obj : error LNK2005: "public: static void __cdecl CBPImages::Set(int,class Upp::Image const &)"
	 (?Set@CBPImages@@SAXHABVImage@Upp@@@Z) already defined in $blitz.obj
ToolsDropPane.obj : error LNK2005: "public: static void __cdecl CBPImages::Set(char const *,class Upp::Image 
	const &)" (?Set@CBPImages@@SAXPBDABVImage@Upp@@@Z) already defined in $blitz.obj
D:\Develop\upp12\out\MSC8.Debug_full.Gui\CBPMain.exe : fatal error LNK1169: one or more multiply defined symb
	ols found


Even after pressing undo to remove all changes, these errors persist. Rebuild, clean + rebuild, nothing helps. I've even done a treedif to see, and the files are absolutely identical to their downloaded state. Only happens with MSC8.

I can't post a test case, but do you have any idea how to fix this?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Question about debugging dll
Next Topic: [BUG??] Blitz issue
Goto Forum:
  


Current Time: Fri May 17 11:49:05 CEST 2024

Total time taken to generate the page: 0.00658 seconds