Problem with running examples

378 views
Skip to first unread message

Asha Rahiro

unread,
Nov 20, 2017, 11:21:53 AM11/20/17
to or-tools-discuss
I am new to or-tools and I'm trying to run them for the very first time with 'make all' on Windows, but I'm getting a very confusing error, it seems as if the arguments from 'cl' are mistaken as directory paths in MinGW (cl /EHsc actually gets mistaken for 'C:/MinGW/MSYS/1.0/EHsc', etc...). The output:

cl /EHsc /MD /nologo /D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS -nologo /O2 -DN
DEBUG -DUSE_CBC -DUSE_CLP /D__WIN32__ /Iinclude\\src\\windows /DGFLAGS_DLL_DECL=
 /DGFLAGS_DLL_DECLARE_FLAG= /DGFLAGS_DLL_DEFINE_FLAG= /Iinclude /I. -DUSE_GLOP -
DUSE_BOP -c examples\\cpp\\costas_array.cc /Foobjs\\costas_array.obj
cl : Command line warning D9024 : unrecognized source file type 'C:/MinGW/MSYS/1
.0/EHsc', object file assumed
cl : Command line warning D9027 : source file 'C:/MinGW/MSYS/1.0/EHsc' ignored
cl : Command line warning D9024 : unrecognized source file type 'C:/MinGW/MSYS/1
.0/MD', object file assumed
cl : Command line warning D9027 : source file 'C:/MinGW/MSYS/1.0/MD' ignored
cl : Command line warning D9024 : unrecognized source file type 'C:/MinGW/MSYS/1
.0/nologo', object file assumed
cl : Command line warning D9027 : source file 'C:/MinGW/MSYS/1.0/nologo' ignored


... etc ... Until there's the Cannot open include file: 'ortools/base/callback.h' at the end


cl : Command line warning D9024 : unrecognized source file type 'C:/MinGW/MSYS/1
.0/I.', object file assumed
cl : Command line warning D9027 : source file 'C:/MinGW/MSYS/1.0/I.' ignored
cl : Command line warning D9027 : source file 'C:/MinGW/MSYS/1.0/Foobjs/costas_a
rray.obj' ignored
costas_array.cc
examples\cpp\costas_array.cc(27): fatal error C1083: Cannot open include file: '
ortools/base/callback.h': No such file or directory
make: *** [objs\\costas_array.obj] Error 2


Laurent Perron

unread,
Nov 20, 2017, 11:46:58 AM11/20/17
to or-tools...@googlegroups.com
Please use a clean command line tool from visual studio (x64 native command line tool) that is not touched mingw.
We do not support mingw.

Thanks

--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Asha Rahiro

unread,
Nov 20, 2017, 12:04:09 PM11/20/17
to or-tools-discuss
Thanks for quick response, but I am using it, VS2015 x64 Native Tools Command Prompt

Laurent Perron

unread,
Nov 20, 2017, 6:25:50 PM11/20/17
to or-tools...@googlegroups.com

Yes, but clearly mingw is in the path before visual studio. Please change that.

Asha Rahiro

unread,
Nov 27, 2017, 10:03:37 AM11/27/17
to or-tools-discuss
But what is the correct path for Visual Studio (Im using 2015)? When I remove MinGW from path, it cannot recognise the make command. Does the VS command prompt have make? Or how do I add it to the path?

Laurent Perron

unread,
Nov 27, 2017, 1:08:56 PM11/27/17
to or-tools-discuss
make.exe is in tools, 


please type tools\make <command>

Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00


To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discuss+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages