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

Building fmt-impl-test with BUILD_SHARED_LIBS enabled fails on windows #936

Closed
AndreasSchoenle opened this issue Nov 19, 2018 · 1 comment

Comments

@AndreasSchoenle
Copy link
Contributor

IDE: Visual Studio 15.8.9
The compiler understandably complains about multiply defined symbols:

fmt.lib(fmt.dll) : error LNK2005: "private: void __cdecl fmt::v5::system_error::init(int,class fmt::v5::basic_string_view<char>,struct fmt::v5::format_args)" (?init@system_error@v5@fmt@@AEAAXHV?$basic_string_view@D@23@Uformat_args@23@@Z) already defined in format-impl-test.obj
1>fmt.lib(fmt.dll) : error LNK2005: "void __cdecl fmt::v5::format_system_error(class fmt::v5::internal::basic_buffer<char> &,int,class fmt::v5::basic_string_view<char>)" (?format_system_error@v5@fmt@@YAXAEAV?$basic_buffer@D@internal@12@HV?$basic_string_view@D@12@@Z) already defined in format-impl-test.obj
@vitaut
Copy link
Contributor

vitaut commented Nov 20, 2018

Fixed by #937, thanks.

@vitaut vitaut closed this as completed Nov 20, 2018
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