-
When I use Ice 3.7.8 with CMake 3.28, a simple example with Ice content is as follows:
CMakeLists.txt as follows:
I only implemented a simple server. Why does the program prompt that it cannot find IceDiscovery37++11D.lib during linking? I didn't find any references to the IceDiscovery library. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
IceDiscovery37++11D.lib is automatically linked by including Ice/RegisterPlugins.h. This library should be available in your compiler’s library path. You can see where this happens in the code here: The officially supported Windows SDK is distributed as a NuGet package. For Visual Studio 2022, you can use the zeroc.ice.v143 package available here: If you need examples of Visual Studio projects that use these NuGet packages, you can refer to the demos available here: Please note that ZeroC does not provide builds or support for CMake packages. However, you might find help from other CMake users in the community for setting up such configurations. Cheers, |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your answer, it solved the problem that had been bothering me for a day. However, due to the project's cross-platform requirements, I've decided to stick with CMake since I am more familiar with this tool. Thanks again! |
Beta Was this translation helpful? Give feedback.
IceDiscovery37++11D.lib is automatically linked by including Ice/RegisterPlugins.h. This library should be available in your compiler’s library path. You can see where this happens in the code here:
Ice/RegisterPlugins.h (Line 120).
The officially supported Windows SDK is distributed as a NuGet package. For Visual Studio 2022, you can use the zeroc.ice.v143 package available here:
https://www.nuget.org/packages/zeroc.ice.v143.
If you need examples of Visual Studio projects that use these NuGet packages, you can refer to the demos available here:
Ice demos on GitHub (3.7/cpp11 branch).
Please note that ZeroC does not provide builds or support for CMake packages. However, you might find hel…