-
I'm trying to compile a project I'm working on but it seems to me that no matter what compiler flags I use I get this error: I currently use What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Can you run Normally when folks run into this issue it is because they are trying to use ELF object files from the host. |
Beta Was this translation helpful? Give feedback.
-
Oh! I see the problem. You are using C++ pre-compiled headers are not supposed to be passed to the linker like that and are normally called |
Beta Was this translation helpful? Give feedback.
-
Yup.. the same thing happens on native builds if you try to like a pre-compiled header as an object file. |
Beta Was this translation helpful? Give feedback.
Oh! I see the problem. You are using
-x c++-header
which is tell clang to output a C++ pre-compiled header.C++ pre-compiled headers are not supposed to be passed to the linker like that and are normally called
.pch
.