Installation error

95 views
Skip to first unread message

junc...@gmail.com

unread,
Aug 6, 2021, 2:18:45 PM8/6/21
to or-tools-discuss
Hello, 

I was trying to install or tools by source in C++, 
When I run tools\make cc,   it ran a while and then ended with the following error:

.....
ON_WARNINGS to acknowledge that you have received this warning.
        with
        [
            IntegerType=int
        ]
.\ortools\graph\max_flow.cc(927): error C2374: 'kMaxFlowQuantity': redefinition; multiple initialization
.\ortools\graph\max_flow.cc(927): note: see declaration of 'kMaxFlowQuantity'
.\ortools\graph\max_flow.cc(928): note: while compiling class template static data member 'const operations_research::FlowQuantity operations_research::GenericMaxFlow<operations_research::SimpleMaxFlow::Graph>::kMaxFlowQuantity'
.\ortools\graph\max_flow.cc(78): note: see reference to class template instantiation 'operations_research::GenericMaxFlow<operations_research::SimpleMaxFlow::Graph>' being compiled
make: *** [makefiles/Makefile.gen.mk:1156: objs/graph/max_flow.obj] Error 2


Can someone help? Thanks!

J

Mizux Seiha

unread,
Aug 7, 2021, 2:58:12 AM8/7/21
to or-tools-discuss

junc...@gmail.com

unread,
Aug 9, 2021, 2:29:05 PM8/9/21
to or-tools-discuss
I am using VS 2019,  on Windows 10 Pro

The link shows how to modify the file:    ortools/graph/max_flow.cc  and max_flow.h ?

What does  "and (reindent)" mean?
Message has been deleted

junc...@gmail.com

unread,
Aug 9, 2021, 5:18:41 PM8/9/21
to or-tools-discuss
Ok, I think it worked, finished compilation, finished testing, thanks!
Reply all
Reply to author
Forward
0 new messages