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 |
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?
|
|
|
Goto Forum:
Current Time: Fri May 17 11:49:05 CEST 2024
Total time taken to generate the page: 0.00658 seconds
|