yoghadj / or-tools

Automatically exported from code.google.com/p/or-tools
0 stars 0 forks source link

c# compilation error #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. run make csharp (make csharplp not working any longer?)
2.
3.

What is the expected output? What do you see instead?

I get the compilation error:

cl /EHsc /MD /nologo -nologo  /O2 -DNDEBUG /Isrc /Iexamples /Isrc\\gen /IC:\\pro
jects\\or-tools\\dependencies\\install\\include /DGFLAGS_DLL_DECL= /DGFLAGS_DLL_
DECLARE_FLAG= /DGFLAGS_DLL_DEFINE_FLAG= /IC:\\projects\\or-tools\\dependencies\\
install\\include /Idependencies\\sources\\TinyThread++-1.1\\source  /IC:\\projec
ts\\or-tools\\dependencies\\install\\include /IC:\\projects\\or-tools\\dependenc
ies\\install\\include /DUSE_CBC /IC:\\projects\\or-tools\\dependencies\\install\
\include /DUSE_CLP     /D__WIN32__ /IC:\\projects\\or-tools\\dependencies\\insta
ll\\include -c src\\gen\\constraint_solver\\constraint_solver_csharp_wrap.cc /Fo
objs\\constraint_solver_csharp_wrap.obj
constraint_solver_csharp_wrap.cc
src\util/tuple_set.h(375) : error C2039: 'sort' : is not a member of 'std'
src\util/tuple_set.h(375) : error C3861: 'sort': identifier not found
src\util/tuple_set.h(408) : error C2039: 'sort' : is not a member of 'std'
src\util/tuple_set.h(408) : error C3861: 'sort': identifier not found
Tools\make: *** [objs/constraint_solver_csharp_wrap.obj] Error 2

What version of the product are you using? On what operating system?
Win 7, VS 2012 SP4, running under "Open VS2012 x64 Cross Tools Command Prompt"

Please provide any additional information below.
Having real trouble using or-tools dlls under "Win 8/IIS app pool" env made me 
resort to compiling everything myself hoping it would link to "the right" c++/c 
libraries... blind man shooting :)

Original issue reported on code.google.com by saxo...@gmail.com on 17 Jan 2014 at 9:51

GoogleCodeExporter commented 9 years ago
Hi, 

I added the missing #include <algorithm>.
Can you check it is fixed? (I do not have access to a windows machine).

Original comment by laurent....@gmail.com on 17 Jan 2014 at 11:59

GoogleCodeExporter commented 9 years ago
Yep, that fixed it. Thanks!
What happened with the make csharplp goal? Does that mean that from now on 
everything included in a single dll - Google.OrTools.dll (no more 
Google.OrTools.LinearSolver.dll)?

Original comment by saxo...@gmail.com on 17 Jan 2014 at 2:16