Skip to content

Include missing in blob.hpp to compile solver.cpp #2027

@albenoit

Description

@albenoit

After last code update, compilation fails on Debian testing for the following reason in file include/caffe/blob.hpp :

CXX src/caffe/solver.cpp
In file included from ./include/caffe/net.hpp:10:0,
                 from src/caffe/solver.cpp:7:
./include/caffe/blob.hpp:13:26: error: ‘INT_MAX’ was not declared in this scope
 const int kMaxBlobAxes = INT_MAX;

This problem can be solved easily by adding the missing include

 #include <climits>

However, it should be more elegant to add this include into another header already included in this file
(maybe in caffe/common.hpp ?).

Thank you for this great library !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions