2015-04-20, 18:02
Hi All,
I'm developing a PVR dll using the latest CMake method. I have some weird linking problem in Win32.
By default the project and depend libs are built using /MD (dynamic linking) and my code hangs in very simple msvcrt functions like file open, fileno, etc.
If I am overriding MD to MT in all libraries, everything is working well.
I suspect the problem is when Kodi hooks the msvcrt functions after loading my dll.
BTW I am using the following cmake rules:
...
-DCMAKE_BUILD_TYPE=Release
-G "Visual Studio 12"
-DCMAKE_USER_MAKE_RULES_OVERRIDE = "...\xbmc\project\cmake\scripts\windows\c-flag-overrides.cmake"
-DCMAKE_USER_MAKE_RULES_OVERRIDE_CXX = "...\xbmc\project\cmake\scripts\windows\cxx-flag-overrides.cmake"
Best regards,
Zoltan
I'm developing a PVR dll using the latest CMake method. I have some weird linking problem in Win32.
By default the project and depend libs are built using /MD (dynamic linking) and my code hangs in very simple msvcrt functions like file open, fileno, etc.
If I am overriding MD to MT in all libraries, everything is working well.
I suspect the problem is when Kodi hooks the msvcrt functions after loading my dll.
BTW I am using the following cmake rules:
...
-DCMAKE_BUILD_TYPE=Release
-G "Visual Studio 12"
-DCMAKE_USER_MAKE_RULES_OVERRIDE = "...\xbmc\project\cmake\scripts\windows\c-flag-overrides.cmake"
-DCMAKE_USER_MAKE_RULES_OVERRIDE_CXX = "...\xbmc\project\cmake\scripts\windows\cxx-flag-overrides.cmake"
Best regards,
Zoltan