2015-07-28 3 views
0

При создании проекта в VS2012, я получаю ошибку, связывающую какLNK1113: недопустимый машина типа 0x1C0

LNK1113: недопустимый тип машины 0x1C0

Я не уверен, где проверить и что будет Ошибка. Любая помощь будет оценена по достоинству.

Благодаря

+0

Я не совсем знаком с VS2012, однако, есть параметр установки или проекта, который указывает целевую архитектуру. Этот параметр должен быть либо 1) пустым, либо 2) установленным фактическим значением для представления текущей архитектуры/CPU – user3629249

+0

Похоже, что это может быть поврежденный объект. Лучший совет, похоже, заключается в том, чтобы исправить оскорбление obj и перестроить. https://social.msdn.microsoft.com/Forums/en-US/02a7479f-0f07-4d91-8ce6-c7f574b1e02c/lnk1113-invalid-machine-type-0x1c0?forum=vcgeneral – user590028

+0

Ну, это не недопустимая машина но компоновщик не говорит на этом языке. 0x1C0 - тип машины для ядер ARM. Конечно, вы используете неправильную библиотеку, обратитесь к поставщику/поставщику библиотеки, чтобы получить правильный вкус. –

ответ

-1

две минуты Google для «как установить модуль типа машины в визуальной студии»

привел следующую информацию, находится по адресу:

<http://stackoverflow.com/questions/3563756/fatal-error-lnk1112-module-machine-type-x64-conflicts-with-target-machine-typ> 



Check your properties options in your linker settings at: 
Properties > Configuration Properties > Linker > Advanced > Target Machine. 
Select MachineX64 if you are targeting a 64 bit build, 
or MachineX86 if you are making a 32 bit build. 

Select Build > Configuration Manager 
from the main menu in visual studio. 
Make sure your project has the correct platform specified. 
It is possible for the IDE to be set to build x64 
but an individual project in the solution can be set to target win32. 
So yeah, visual studio leaves a lot of rope to hang yourself, 
but that's life. 

Check your library files 
that they really are of the type of platform are targeting. 
This can be used by using dumpbin.exe 
which is in your visual studio VC\bin directory. 
use the -headers option to dump all your functions. 
Look for the machine entry for each function. 
it should include x64 if it's a 64 bit build. 

In visual studio, select 
Tools > Options from the main menu. 
select Projects and Solutions > VC++ Directories. 
Select x64 from the Platform dropdown. 
Make sure that the first entry is: 
$(VCInstallDir)\bin\x86_amd64 
followed by $(VCInstallDir)\bin. 

Once I did step 4 everything worked again for me. 
The thing was I was encountering this problem on all my projects 
where I wanted to compile towards a 64 bit target. 
Смежные вопросы