Skip to content

Commit 13f25b5

Browse files
[flutter_local_notifications_windows] add runtimeobject.lib to resolve unresolved WinRT symbols (MaikuB#2650)
Without this, Windows builds fail with unresolved external symbol errors related to WINRT_IMPL_RoGetActivationFactory and RoOriginateLanguageException. This links the missing `runtimeobject.lib` explicitly as required by MSVC since newer Windows SDKs no longer link it implicitly. Tested on: - Windows 11 + MSVC 2022 - Flutter stable 3.32.6
1 parent f47ae34 commit 13f25b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flutter_local_notifications_windows/windows/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ set(flutter_local_notifications_windows_bundled_libraries
2121
$<TARGET_FILE:flutter_local_notifications_windows>
2222
PARENT_SCOPE
2323
)
24+
target_link_libraries(flutter_local_notifications_windows PRIVATE runtimeobject)

0 commit comments

Comments
 (0)