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

Windows下shared目标缺少定义_WINDLL宏 #5333

Closed
Elite-stay opened this issue Jul 11, 2024 · 2 comments
Closed

Windows下shared目标缺少定义_WINDLL宏 #5333

Elite-stay opened this issue Jul 11, 2024 · 2 comments
Labels

Comments

@Elite-stay
Copy link
Contributor

Xmake 版本

2.9.3

操作系统版本和架构

Windows

描述问题

通过vs新建的动态库工程会自动包含名为Windows Dynamic Link Library,实则为Microsoft.Cpp.WinDLL.props的属性表,这个属性表会增加定义_WINDLL宏,但目前set_kind(“shared")中并没有

期待的结果

设置set_kind(“shared")后,如果是使用vs进行编译,则增加_WINDLL宏

工程配置

.

附加信息和错误日志

.

@Elite-stay Elite-stay added the bug label Jul 11, 2024
@waruqi
Copy link
Member

waruqi commented Jul 11, 2024

xmake 默认不会加任何内置定义的, 也不会保证必须跟 vs 的配置保持同步,你可以自己配置上。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


xmake does not add any built-in definitions by default, nor does it guarantee that it must be synchronized with the vs configuration. You can configure it yourself.

@waruqi waruqi closed this as completed Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants