0
(0)

fatal error LNK1104: ファイル ‘kernel32.lib’ を開くことができません。

という表示がコマンドプロンプト(コンソール)で表示したとき、一番カンタンな解決方法をお伝えします。

シナリオ: cuda コンパイラ nvcc を使用してコンパイルに失敗したなど。

解決方法:VisualStudio_x64_Win64コマンドプロンプトを管理者として実行するだけです。

前提条件:パスは通っていること。(ライブラリ参照も含めて)

※一通りの開発経験をお持ちの方でもウッカリすることありますよね。

(大雑把な nvcc コンパイル実行例)

以上

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

投稿者 斉藤之雄 (Yukio Saito)

Global Information and Communication Technology OTAKU / Sports volunteer / Social Services / Master of Technology in Innovation for Design and Engineering, AIIT / BA, Social Welfare, NFU / twitter@yukio_saitoh