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

Nuget パッケージで Shlwapi.lib をリンクしてほしい #89

Open
lriki opened this issue Jul 12, 2018 · 0 comments
Open

Nuget パッケージで Shlwapi.lib をリンクしてほしい #89

lriki opened this issue Jul 12, 2018 · 0 comments

Comments

@lriki
Copy link
Collaborator

lriki commented Jul 12, 2018

一部の機能を呼び出すと、リンクエラーとなる。

LNK2019	未解決の外部シンボル __imp__PathMatchSpecExW@12 が関数 "public: static bool __cdecl ln::PlatformFileSystem::matchPath(wchar_t const *,wchar_t const *)" (?matchPath@PlatformFileSystem@ln@@SA_NPB_W0@Z) で参照されました。

プロジェクトに直接 "Shlwapi.lib" をリンクするように設定を加えれば回避可能。

Lumino.Core.targets に

        <Link>
            <AdditionalLibraryDirectories>$(MSBuildThisFileDirectory)../../build/native/lib/;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+            <AdditionalDependencies>Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
        </Link>

とかするとよさそう。

ヘッダで #pragma comment(lib, "Shlwapi.lib") でもいいかも。

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

No branches or pull requests

1 participant