Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

请问使用vs17进行编译时应使用哪种配置? #117

Open
samthephantom opened this issue Nov 19, 2022 · 4 comments
Open

请问使用vs17进行编译时应使用哪种配置? #117

samthephantom opened this issue Nov 19, 2022 · 4 comments

Comments

@samthephantom
Copy link

不好意思,我算是小白中的小白了,直接下载代码之后用vs17打开sln,并尝试用release模式运行,结果编译器报错
错误 C2059 语法错误:“)” MyTinySTL d:\code\mytinystl-master\mytinystl-master\test\algorithm_test.h 722
按理来说不应该出现语法相关的报错才对,我应该使用vs15和c++11来学吗

@qiangqiangxing
Copy link

ZIP下载后,在Windows上用VS2022打开,编译,我也遇到了提示
C2059 语法错误:“)” MyTinySTL d:\code\mytinystl-master\mytinystl-master\test\algorithm_test.h 722
这个可能是什么问题呢?

@Adeshen
Copy link

Adeshen commented Feb 3, 2023 via email

@hppy152
Copy link

hppy152 commented Feb 11, 2023

Release x64 配置

出现语法错误是由于 algorithm_test.h 文件编码引起的,将该文件编码修改成 UTF-8 BOM 即可解决问题

使用应用程序notepad++可以修改编码格式

@Haoran740
Copy link

ZIP下载后,在Windows上用VS2022打开,编译,我也遇到了提示 C2059 语法错误:“)” MyTinySTL d:\code\mytinystl-master\mytinystl-master\test\algorithm_test.h 722 这个可能是什么问题呢?
在window上用vs2021打开项目后,编译器自动让我选择是否更新NET framework和SDK,我都点确认后编译test.cpp就直接成功了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants