Problems with building dc client

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

Moderator: Moderators

Locked
Makemies
Posts: 23
Joined: 2004-03-21 06:06

Problems with building dc client

Post by Makemies » 2004-03-21 06:07

Hi all!
I'm rookie in moding DC++ and when i try to build the client i get this error:

Code: Select all

fatal error LNK1112: module machine type 'IA64' conflicts with target machine type 'X86'
What does that mean? How can i fix it?

Twink
Posts: 436
Joined: 2003-03-31 23:31
Location: New Zealand

Post by Twink » 2004-03-21 07:47

/me looks confused.. what kinda cpu are you running?

Makemies
Posts: 23
Joined: 2004-03-21 06:06

Post by Makemies » 2004-03-21 09:01

I Have AMD Athlon 1Ghz, 512Mb ram, 160gb hard drive etc...But what does that have to do with this?

Guitarm
Forum Moderator
Posts: 385
Joined: 2004-01-18 15:38

Post by Guitarm » 2004-03-21 10:21

Looks like your using link.exe with /Machine:IA64 option

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-03-21 10:31

Makemies wrote:I Have AMD Athlon 1Ghz, 512Mb ram, 160gb hard drive etc...But what does that have to do with this?
IA64 and x86 are processor architectures.

Are you using the DC++ source? Do you get any other errors? How far along in the build does this error show up?
The world is coming to an end. Please log off.

DC++ Guide | Words

Makemies
Posts: 23
Joined: 2004-03-21 06:06

Post by Makemies » 2004-03-21 16:16

Guitarm wrote:Looks like your using link.exe with /Machine:IA64 option
What does that mean?
Are you using the DC++ source? Do you get any other errors?
Yes I Use DC++ 0.306 source...I Tried CZDC++ And strong dc++ sources but same thing happened with those too. No thats the onlu error i get...any ideas?

Guitarm
Forum Moderator
Posts: 385
Joined: 2004-01-18 15:38

Post by Guitarm » 2004-03-21 16:49

Ok, I hope you use VS.NET 2003 to begin with, are you ? :) , then if you click on Project (menu item) -> DCPlusPlus Properties -> Linker (folder) -> Advanced. What does it say next to "Target Machine" ?. Or maybe you have a 64/32-bit Athlon CPU ?

Makemies
Posts: 23
Joined: 2004-03-21 06:06

Post by Makemies » 2004-03-22 02:58

I'm using Microsoft Visual Studio .NET 2003.
What does it say next to "Target Machine" ?.
It says: MachineX86 (/MACHINE:X86)

Qbert
Posts: 73
Joined: 2003-06-07 03:12

Post by Qbert » 2004-03-22 03:57

Makemies wrote:

Code: Select all

fatal error LNK1112: module machine type 'IA64' conflicts with target machine type 'X86'
Your environment is somehow being to set to make 64bit objects. When you installed Visual Studio .NET 2003, did you also install any 64bit options? 64bit options are most likely to have come from installing a Windows SDK, which generally you shouldn't need though. Did you install an MS SDK? You’re also not running any batch file or anything to set up a 64bit environment right?

If at any point you needed to change your Target Machine type, you might be required to do a rebuild. In any event, right now, do a Clean Solution and or Rebuild Solution. That should remove the IA64 object files you already have.

Check to make sure that Target Machine is X86 for each project in the DC++ solution. (I believe you should only need to make use of one project, DCPlusPlus, to be linked, but make sure the others are not being linked with a different Target Machine.)

Tell us if your problem continues. If you still then get that error, somehow you’re producing IA64 object files. Try setting the Target Machine to something else, like Not Set or inherit defaults. Do you have other options for Target Machine?
My Visual Studio .NET 2003 is licensed under my name, and the same for my operating system... What about you?
I surf on an OC3 without limitations, two to be exact, and I'm not joking.

Makemies
Posts: 23
Joined: 2004-03-21 06:06

Post by Makemies » 2004-03-22 08:02

When you installed Visual Studio .NET 2003, did you also install any 64bit options?
No I Didn't.
Did you install an MS SDK?
I Installed Core SDK.
Do you have other options for Target Machine?
Yes there is.
I tried everything you said but it still gives me that error...What do i do now?

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-03-22 08:11

TheParanoidOne wrote:How far along in the build does this error show up?
You didn't answer this question. In addition, are you able to publish and link to your build log somewhere?
The world is coming to an end. Please log off.

DC++ Guide | Words

Makemies
Posts: 23
Joined: 2004-03-21 06:06

Post by Makemies » 2004-03-22 09:25

How far along in the build does this error show up?
Now the first error is gone, (Don't ask me how, because i don't know it my self either :) )but now i get 2 more errors...the build log is there: http://members.lycos.co.uk/xvidfinland/BuildLog.htm

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-03-22 10:11

Seeing as the original problem has disappeared, have you followed the instructions given in Compile.txt?
The world is coming to an end. Please log off.

DC++ Guide | Words

Makemies
Posts: 23
Joined: 2004-03-21 06:06

Post by Makemies » 2004-03-22 13:29

Yes I have...

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-03-22 13:45

The Build Log wrote:Compiling...
stdafx.cpp
c:\Program Files\Microsoft SDK\include\Windows.h(157) : fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory
Results
So do you have the file excpt.h anywhere?
The world is coming to an end. Please log off.

DC++ Guide | Words

Makemies
Posts: 23
Joined: 2004-03-21 06:06

Post by Makemies » 2004-03-22 14:15

So do you have the file excpt.h anywhere?
Yes i do...

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2004-03-22 20:14

Makemies wrote:
Did you install an MS SDK?
I Installed Core SDK.
You can install a 64-bit core SDK (presumably with associated linkers and compilers) from Microsoft. If you have .NET 2002 or 2003, you didn't need to install the Core SDK to get DC++ to work.

Locked