简体   繁体   English

我可以在 MSVC 中使用 gcc 内置函数吗?

[英]Can I use gcc built-in functions in MSVC?

I want to use GCC atomic memory access built-in functions in MSVC(v143) environment.我想在 MSVC(v143) 环境中使用 GCC atomic memory 访问内置函数。

How can i use them with MSVC??我如何将它们与 MSVC 一起使用?

I know that i can use them by changing compiler to clang, but it is hard to change the compiler in my case.我知道我可以通过将编译器更改为 clang 来使用它们,但在我的情况下很难更改编译器。

You can't.你不能。 You either compile with MSVC or GCC. If you don't use GCC, you don't have GCC's functions.你要么用 MSVC 编译,要么用 GCC 编译。如果你不使用 GCC,你就没有 GCC 的功能。 Why it would be hard to change a compiler in your case?为什么在您的情况下很难更改编译器?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM