[cfe-users] Clang compilation options to solve the comaptible issue?
Guofeng Zhang via cfe-users
cfe-users at lists.llvm.org
Thu Oct 31 01:45:36 PDT 2019
Hi,
I just stat using clang 8 not long ago. I need to compile our old c++
source without changing it. It is compiled with Visual Studio before. Now I
want to migrate to clang as the compiler.
The following code segement can be compiled by clang:
1) for (int i = 0 ; i < 6 ; i++ ) {
....
}
int k = i ; // compiler error
2) unsigned short *s = ....
wchar_t *t = s ; // compiler error
I tried -ffor-scope and -fshort-wchar, but does not solve the issues.
are there clang compilation options to solve the issues?
Thanks for your help very much,
Guofeng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20191031/5b381a91/attachment.html>
More information about the cfe-users
mailing list