llvm-msvc icon indicating copy to clipboard operation
llvm-msvc copied to clipboard

Protobuf wrong compiling format?

Open kem0x opened this issue 2 years ago • 2 comments

image As shown above this project makes use of google's protobuf and compiling a generated c++ file by protobuf seems to not work...

I believe this is due to the fact that clang uses .pcm files instead of microsoft's .ifc files, Is there any work around this issue?

kem0x avatar Sep 07 '23 21:09 kem0x

This is the same as https://github.com/backengineering/llvm-msvc/issues/29.

I think it is more reasonable to wait for the official fix. This feature will be fixed sooner or later. https://discourse.llvm.org/t/clang-cl-exe-support-for-c-modules/72257/14 https://github.com/llvm/llvm-project/issues/64118

In most cases. You can try to choose ISO C++20 Standard (/std:c++20) to solve the problem

gmh5225 avatar Sep 08 '23 04:09 gmh5225

I have the same issue on c++20 aswell and sadly i can't downgrade more, and the official llvm discourse seems to be stale sadly...

kem0x avatar Sep 08 '23 14:09 kem0x