8RJYX-0PD65-08M
Contributor
Contributor

cant compile ++ code on vmware shared folder

host machine is win10 

vitrual machine is macOS 12.

Use VMware shared folder to map win10 folder to macOS. Cannot compile correctly...output error

make -C ./XEngine_Lib/XEngine_BaseLib -f Makefile.Darwin RELEASE=0
g++ -Wall -std=gnu++17 -fPIC -g -c -I ./ ./BaseLib_OperatorCharset/BaseLib_OperatorCharset.cpp
In file included from ./BaseLib_OperatorCharset/BaseLib_OperatorCharset.cpp:1:
In file included from ./pch.h:48:
./BaseLib_Define.h:1893:81: error: expected unqualified-id
extern "C" BOOL BaseLib_OperatorVer_XGetStu(XENGINE_LIBVERSION* pSt_LibVersion);
^
error: source file is not valid UTF-8
error: source file is not valid UTF-8
error: source file is not valid UTF-8
error: source file is not valid UTF-8
error: source file is not valid UTF-8
error: source file is not valid UTF-8
warning: null character(s) preserved in string literal [-Wnull-character]
warning: null character ignored [-Wnull-character]
error: source file is not valid UTF-8
error: source file is not valid UTF-8
error: source file is not valid UTF-8
error: source file is not valid UTF-8
error: source file is not valid UTF-8
error: source file is not valid UTF-8
error: source file is not valid UTF-8
error: source file is not valid UTF-8
error: source file is not valid UTF-8
error: source file is not valid UTF-8
error: source file is not valid UTF-8
error: source file is not valid UTF-8
fatal error: too many errors emitted, stopping now [-ferror-limit=]
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: x86_64-apple-darwin21.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
clang: error: unable to execute command: Segmentation fault: 11
clang: note: diagnostic msg: Error generating preprocessed source(s).
make[1]: *** [BaseLib_OperatorCharset.o] Error 254
make: *** [libXEngine_BaseLib.so] Error 2

 

but copy the files into macOS compile is correctly,file encoding is utf8-bom

0 Kudos
1 Reply
scott28tt
VMware Employee
VMware Employee

You can't discuss running MacOS on a Windows PC here - Apple's EULA only allows you to run MacOS on Apple hardware.

Thread reported.

 


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos