0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Cmake 文字化けが原因でerror C3688が出たときの対処法

Posted at

whisper-rsをWindows環境のRust(MSVC)でビルドしようとしたらcmake中に以下のエラーが出た。

error C3688: invalid literal suffix '縲・'; literal operator or literal operator template 'operator ""縲・' not found

UTF-8を指定してcmakeしたいが、cmake自体がcargoで呼ばれているので、外から指定する必要がある。

直った

以下のようにしたら直った。

$env:CMAKE_CXX_FLAGS = "/utf-8"
cargo run
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?