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

vs 2019 16.4.5 (使用 Unicode 字符集) 下怎么编译? #54

Closed
sgf opened this issue Mar 5, 2020 · 5 comments
Closed

vs 2019 16.4.5 (使用 Unicode 字符集) 下怎么编译? #54

sgf opened this issue Mar 5, 2020 · 5 comments

Comments

@sgf
Copy link

sgf commented Mar 5, 2020

vs2015那个文件夹的sln编译不过。

我尝试删除一些依赖,但是因为context文件夹下有一些汇编文件不带明白,不敢乱动。

@idealvin
Copy link
Owner

idealvin commented Mar 5, 2020

vs2015那个文件夹的sln编译不过。

我尝试删除一些依赖,但是因为context文件夹下有一些汇编文件不带明白,不敢乱动。

@sgf
vs 工程是早期提供的,采用多字节编码应该是可以编过的。

建议使用 xmake 编译,vs 工程后续可能不再支持。

@sgf
Copy link
Author

sgf commented Mar 5, 2020

vs 工程是早期提供的,采用多字节编码应该是可以编过的。
建议使用 xmake 编译,vs 工程后续可能不再支持。

后续项目不会再用多字节编码了。我自己再倒腾一下,用不了就算了。
字符串这块我把WTL的CString已经抠出来了。UTF16编码。我只在windows上需要C++,其他平台因为并无各种限制 有更好的语言。

@sgf sgf closed this as completed Mar 5, 2020
@idealvin
Copy link
Owner

idealvin commented Mar 5, 2020

@sgf 你可以先试试直接改下工程属性,多字节改为unicode编码,代码实现应该是不依赖这个的

@sgf
Copy link
Author

sgf commented Mar 5, 2020

可以了 谢谢!是x64和x86 asm文件条件编译问题。

@idealvin
Copy link
Owner

idealvin commented Mar 5, 2020

@sgf

ok. 如果一定要 vs 工程的话,也可以用 xmake 自动生成:

xmake project -k vsxmake -m "debug;release"

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

2 participants