LoginSignup
0
0

「ライブラリのコンピューターの種類 'X86' がターゲットのコンピューターの種類' x64' と競合しています」の対処方法

Last updated at Posted at 2023-09-24

2日前にC言語を学習し始めたところで、早速定番の箇所でつまずいたので事例と対処の記録まで。

環境

  • Windows10
  • Visual Studio 2022

エラーの内容

「ライブラリのコンピューターの種類 'X86' がターゲットのコンピューターの種類' x64' と競合しています」

下記のように、プラットフォームの設定を確認しても「x64」できちんと設定されているので原因がわからず計2時間ぐらい試行錯誤…。
https://qiita.com/sketchbooks99/items/97ec33cecdb9db6e3eb9

対処方法

Developer Command Prompt for VS 2022 から x64 Native Tools Command Prompt for VS 2022の使用に切り替えたら無事コンパイルできた。
image.png

参考にした文献

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0