Mars_999

Hello, I am trying to get the express edition of VC8 to run and get this error...

I am not sure what is wrong. I installed the app and SP1 from the ms site...

Thanks


fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'


Re: Visual C++ Express Edition lnk1112 error with Vista 64bit and VC8 express edition?

einaros

The error indicates that you're trying to link x86 modules with the modules of your project which is targetting x64. Try running "Rebuild all" to delete all object files (though those should already have been removed), and make sure you're not linking any x86 libraries.





Re: Visual C++ Express Edition lnk1112 error with Vista 64bit and VC8 express edition?

Mars_999

einaros wrote:
The error indicates that you're trying to link x86 modules with the modules of your project which is targetting x64. Try running "Rebuild all" to delete all object files (though those should already have been removed), and make sure you're not linking any x86 libraries.


Thanks for the help. What I want to do is make 32bit apps not 64 for now.... I tried a simple console app "HELLO WORLD" and that woudn't even compile either SO I uninstalled the whole V++8 package. I am lost on what to do, I never had this much of a headache with MS products... I am very disappointed by this. Would installing teh 2008 beta solve this

THanks




Re: Visual C++ Express Edition lnk1112 error with Vista 64bit and VC8 express edition?

orcmid

Mars_999 wrote:
What I want to do is make 32bit apps not 64 for now.... Would installing teh 2008 beta solve this

The target machine is set incorrectly in your project configuration. With the project open, click the IDE menu Project | Properties and then select Configuration Properties in the property explorer tree. Make sure the platform of your project shown across the top of the properties pane is Active (Win32). If it is Win64 or some other platform, change it to Win32.

Also, if you are compiling on a Vista x64 system, make sure you have installed VC++ 2005 Express Edition SP1 and the special Vista update to that SP1.

There are no Win64 libraries distributed with VC++ 2005 Express Edition. The incorrect setting may be a bug in how the default is chosen or it may be because you loaded an existing project that was set for other than Win32.

If this doesn't help, holler and we'll look deeper.

- Dennis






Re: Visual C++ Express Edition lnk1112 error with Vista 64bit and VC8 express edition?

Mars_999

1>MSVCRTD.lib(ti_inst.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

this is the new error I get... I clicked on the linker options and set the machine type to x86. Then I get the error above. Is that progress or incorrect This project is from Vista 32bit using VC++8 and now I upgraded to Vista64 bit.

If I click on Windows Update I get nothing for updates Do you have the link to the site I need to DL the special Vista update to SP1

Thanks




Re: Visual C++ Express Edition lnk1112 error with Vista 64bit and VC8 express edition?

orcmid

Mars_999 wrote:
1>MSVCRTD.lib(ti_inst.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

this is the new error I get... I clicked on the linker options and set the machine type to x86. Then I get the error above. Is that progress or incorrect

http://www.microsoft.com/downloads/details.aspx familyid=90e2942d-3ad1-4873-a2ee-4acc0aace5b6&displaylang=en

has the SP1 update for Windows Vista.

I think your problem is still one of settings though. Are you using an existing .sln or .proj file from a different machine You might need to create a project from scratch and move your source code into it.

Also, I'm not sure how you got any x64 libraries. Are you sure this is Visual Studio 2005 Express Edition we are talking about

- Dennis






Re: Visual C++ Express Edition lnk1112 error with Vista 64bit and VC8 express edition?

Mars_999

Thanks for the link, I am not sure if that solved my problem but it works now after I installed it. BTW when will MS put out a compiler that supports 64/32 in the same package VC++2008




Re: Visual C++ Express Edition lnk1112 error with Vista 64bit and VC8 express edition?

einaros

VS2005 standard and up has both the x64 and x86 compiler, if that's what you're asking. Mixing x86 modules with x64 modules, on the other hand, will never be supported (as it would degrade performance something awful).





Re: Visual C++ Express Edition lnk1112 error with Vista 64bit and VC8 express edition?

Mars_999


einaros wrote:
VS2005 standard and up has both the x64 and x86 compiler, if that's what you're asking. Mixing x86 modules with x64 modules, on the other hand, will never be supported (as it would degrade performance something awful).


The former answers my question. I wanted to know if you could code 64 and 32bit code using the same compiler, not the same project. Meaning the STD version has this already, and I will wait and buy the 2008 version then.

Thanks