2 evil looking errors

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

Locked
xaozon
Posts: 4
Joined: 2006-04-23 02:45
Contact:

2 evil looking errors

Post by xaozon » 2006-04-23 02:51

using Visual Studio 2005 NOT express edition

------ Build started: Project: DCPlusPlus, Configuration: Debug Win32 ------
Compiling...
main.cpp
MainFrm.cpp
UPnP.cpp
Generating Code...
Compiling resources...
Compiling manifest to resources...
Linking...
CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1, language:0x0409
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
Build log was saved at "file://C:\...\DCPlusPlus-0.689-src\vc7\Debug\DCPlusPlus\BuildLog.htm"
DCPlusPlus - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 6 up-to-date, 0 skipped ==========
xaozon.echoz.com

ullner
Forum Moderator
Posts: 333
Joined: 2004-09-10 11:00
Contact:

Post by ullner » 2006-04-23 04:03

DC++ isn't customized to compile on VS 8... Anyway, you might find a patch that will fix your problem here.

I forgot to say... Have you converted the project files etc to VS 8? (Doesn't look like it from the error.)

xaozon
Posts: 4
Joined: 2006-04-23 02:45
Contact:

Post by xaozon » 2006-04-23 04:21

when i open solution on vs2k5 it asks if i want to convert and i did.
how to apply those patches do i have to change everything manually or is there some feature that automatically patches the code?
xaozon.echoz.com

ullner
Forum Moderator
Posts: 333
Joined: 2004-09-10 11:00
Contact:

Post by ullner » 2006-04-23 09:39

You can run tools as GNU patch or WinMerge. If you look at the patches, things after a single '-' is removed, and things after a single '+' is added.

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2006-04-23 10:44

I am not sure what the cause of that problem is but I remember having that problem everytime I convert the DC++ project to vs 8 might be so that it happens for other projets as well but I'm not sure of that one. Anyway to resolove it, right click the DCPlusPlus project and choose propertis then navigate to Linker->Manifest File and set "Generate Manifest" to no.

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2006-04-23 10:56

Made some quick research on it, seems like this is due to that DC++ has anw own Manfifest included through it's resource file and when vs tries to generate one aswell a conflict occours. I guess that the appoached I mentioned in my above post is the best one to provide more backwards compability, otherwisw you could delete the one in the reosuce file but then there would be no manifest for older version of visual studio if I'm not mistaken...

xaozon
Posts: 4
Joined: 2006-04-23 02:45
Contact:

Post by xaozon » 2006-04-23 11:39

after manually pathcing code theres only 1 error:

c:\...\visual studio 2005\dcplusplus-0.689-src\windows\exlistviewctrl.cpp(49) : error C2086: 'int j' : redefinition
c:\...\visual studio 2005\dcplusplus-0.689-src\windows\exlistviewctrl.cpp(35) : see declaration of 'j'


joakim i havent tried your advice yet ill try now
xaozon.echoz.com

xaozon
Posts: 4
Joined: 2006-04-23 02:45
Contact:

Post by xaozon » 2006-04-23 11:55

succesful build with unpatched code using joakim's advice :D thanks
xaozon.echoz.com

Locked