Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

raise error C2220 when I run build.cmd from the command line. #22

Closed
hollywuzh opened this issue Aug 13, 2024 · 2 comments
Closed

raise error C2220 when I run build.cmd from the command line. #22

hollywuzh opened this issue Aug 13, 2024 · 2 comments

Comments

@hollywuzh
Copy link

I followed the guide (https://cosys-lab.github.io/install_windows/) and tried to build Cosys-AirSim.
In the step "Run build.cmd from the command line". The command prompt raise error as blow.
image
The similar sceniro can be found in (microsoft/AirSim#76). However, I check the encoding of "Half.h" and it has no problem. So how can I solve this problem? Thanks.

@WouterJansen
Copy link
Contributor

Can you try to re-save Half.h as UTF-8 with BOM and try to compile again? I know Notepad++ can easily do this:
image

@hollywuzh
Copy link
Author

The problem has been solved. I re-save Half.h\BFloat16.h\GenericPacketMathFunctions.h as UTF-8 with BOM in VSCode. Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

2 participants