yoghadj / or-tools

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

fp_utils.cc error C3861 : 'ilogb' : identifier not found #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am trying to build or-tools from source :
svn checkout http://or-tools.googlecode.com/svn/trunk/ or-tools-read-only

On Windows 7, 64 bits.
With VC++ 2012.

Building dependencies was fine.

But when building the core :
> make cc java 

I get the following error :

cl /EHsc /MD /nologo -nologo  /O2 -DNDEBUG /Isrc /Iexamples /Isrc\\gen 
/IC:\\or-tools-read-only\\dependencies\\install\\include /DGFLAGS_DLL_DECL= 
/DGFLAGS_DLL_DECLARE_FLAG= 
/DGFLAGS_DLL_DEFINE_FLAG=/IC:\\or-tools-read-only\\dependencies\\install\\includ
e  /IC:\\or-tools-read-only\\dependencies\\install\\include 
/IC:\\or-tools-read-only\\dependencies\\install\\include /DUSE_CBC 
/IC:\\or-tools-read-only\\dependencies\\install\\include /DUSE_CLP     
/DUSE_GLOP /D__WIN32__  
/IC:\\or-tools-read-only\\dependencies\\install\\include -c 
src/util/fp_utils.cc /Foobjs\\util\\fp_utils.obj
fp_utils.cc
src/util/fp_utils.cc(55) : error C3861: 'ilogb': identifier not found
make: *** [objs/util/fp_utils.obj] Error 2

Can youm please help ?

Original issue reported on code.google.com by raphael....@gmail.com on 25 Feb 2015 at 2:54

GoogleCodeExporter commented 9 years ago
Hi, 

Can you switch to visual studio 2013?
ilogb seems only supported from that version.

Original comment by laurent....@gmail.com on 2 Mar 2015 at 9:24

GoogleCodeExporter commented 9 years ago
I dropped support for visual studio 2012.

Original comment by laurent....@gmail.com on 2 Mar 2015 at 12:38