Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Windows Phone Native Series - Solving "Fatal error LNK1112: module machine type 'ARM' conflicts with target machine type 'X86'"

DZone's Guide to

Windows Phone Native Series - Solving "Fatal error LNK1112: module machine type 'ARM' conflicts with target machine type 'X86'"

· Mobile Zone
Free Resource

Get gorgeous, multi-touch charts for your iOS application with just a few lines of code.

As I was working on my native wrapper for Windows Phone, I somehow managed to break the build process. Although there were no modification on my side, on invoking the Build command I would get this:

Not exactly what I was expecting, and I needed to solve this in order to get my DLL. The problem lies in the machine type declaration that is passed to the linker. For some reason, mine got cleared, and therefore the default architecture was set to X86, which is obviously the wrong choice. To change this, you can go two ways.

1. Change the target machine by selection.

Right click on the project and select Properties. Select Linker and open the Advanced item.

Select the Target Machine property and modify it to MachineTHUMB (/MACHINE:THUMB) (what in the world is THUMB?).

2. Add the /MACHINE parameter manually.

Opening the same Properties dialog, in the Linker section, select Command Line. In Additional Options, add a space and type: /MACHINE:THUMB.

You're all set and ready to continue working now. The solution is that simple. Here are some more details on the /MACHINE parameter.

.Net developers: use Highcharts, the industry's leading interactive charting library, without writing a single line of JavaScript.

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}