Build Or-tools v13 and v14

16 views
Skip to first unread message

j...@iconz.co.nz

unread,
Nov 10, 2025, 5:40:12 PM (2 days ago) Nov 10
to or-tools-discuss
Hi
I am trying to compile Or-tools on Windows 11 as I include cplex. The following worked for v12.4550 and previous versions:

cmake -S . -B build -DBUILD_DEPS=ON -DBUILD_DOTNET=ON -USE_CPLEX -DUSE_CPLEX=ON -DCPLEX_ROOT="C:/Program Files/IBM/ILOG/CPLEX_Studio_Community2211"


cmake --build build --config Release  -j -v


This produced the nuget packages I required.

However, with both v13 and v14 I get the following error after the second cmake
      "G:\or-tools-9.13\build\ALL_BUILD.vcxproj" (default target) (1) ->
       "G:\or-tools-9.13\build\ortools\constraint_solver\csharp\dotnet_constraint_solver_RoutingSolverTests.vcxproj" (d
       efault target) (11) ->
       "G:\or-tools-9.13\build\dotnet_package.vcxproj" (default target) (23) ->
       "G:\or-tools-9.13\build\Dotnetortools_proto.vcxproj" (default target) (38) ->
       "G:\or-tools-9.13\build\ortools.vcxproj" (default target) (278) ->
       (Link target) ->
         LINK : fatal error LNK1189: library limit of 65535 objects exceeded [G:\or-tools-9.13\build\ortools.vcxproj]

    5167 Warning(s)
    1 Error(s)

Has anybody else experienced this, or do I have something incorrect in cmake?

Regards
John
Reply all
Reply to author
Forward
0 new messages