error: ‘tensorflow::error’ has not been declared  Status(tensorflow::error::Code code, tensorflow::StringPiece msg);
@Frinklin-Wang,
TensorFlow 1.x is not actively supported. Could you please update TensorFlow to the latest stable version v2.15 and check if you are facing the same issue.

Also I suspect you have missed to submit the CMakeLists Info:
```python
cmake_minimum_required
project(tensorflow_cc_test)
set(CMAKE_CXX_STANDARD 11)
set(TENSORFLOW_DIR )
include_directories(${TENSORFLOW_DIR})
include_directories(${TENSORFLOW_DIR}/tensorflow/contrib/makefile/downloads/absl)
include_directories(${TENSORFLOW_DIR}/tensorflow/contrib/makefile/downloads/protobuf/src)
include_directories(${TENSORFLOW_DIR}/tensorflow/contrib/makefile/gen/proto)
include_directories(${TENSORFLOW_DIR}/tensorflow/contrib/makefile/gen/protobuf-host/include)
include_directories(${TENSORFLOW_DIR}/tensorflow/contrib/makefile/downloads)
include_directories(${TENSORFLOW_DIR}/tensorflow/contrib/makefile/downloads/eigen)
include_directories(${TENSORFLOW_DIR}/tensorflow/contrib/makefile/downloads/nsync/public)

link_directories(${TENSORFLOW_DIR}/tensorflow/contrib/makefile/gen/lib)
link_directories(${TENSORFLOW_DIR}/tensorflow/contrib/makefile/gen/protobuf-host/lib)
link_directories(${TENSORFLOW_DIR}/tensorflow/contrib/makefile/downloads/nsync/builds/default.linux.c++11)
link_directories(${TENSORFLOW_DIR}/bazel-bin/tensorflow)

add_executable(tensorflow_cc_test hello.cpp)
target_link_libraries(tensorflow_cc_test tensorflow_cc tensorflow_framework)
```
and try to add a declare `class tensorflow::error::Code`

Thank you! @tilakrayal ,
I add a declare `class tensorflow::error::Code` in `.../core/lib/core/status.h`. But it doesn't work.
And I don't know how to compile the tensorflow2.x c++ static library. I only try tensorflow1.x c++ static library.

I  add `#include<error_codes.pb.h>` in `tensorflow/core/lib/core/status.h `, it does work. But, there are some other errors:
```
/usr/bin/ld: CMakeFiles/tensorflow_cc_test.dir/test.cpp.o: in function `main':
test.cpp:(.text+0x82): undefined reference to `tensorflow::SessionOptions::SessionOptions()'
/usr/bin/ld: test.cpp:(.text+0xa2): undefined reference to `tensorflow::NewSession(tensorflow::SessionOptions const&, tensorflow::Session**)'
/usr/bin/ld: test.cpp:(.text+0xe0): undefined reference to `tensorflow::Status::ToString[abi:cxx11]() const'
/usr/bin/ld: CMakeFiles/tensorflow_cc_test.dir/test.cpp.o: in function `tensorflow::core::RefCounted::~RefCounted()':
test.cpp:(.text._ZN10tensorflow4core10RefCountedD2Ev[_ZN10tensorflow4core10RefCountedD5Ev]+0xf8): undefined reference to `tensorflow::internal::LogMessageFatal::LogMessageFatal(char const*, int)'
/usr/bin/ld: test.cpp:(.text._ZN10tensorflow4core10RefCountedD2Ev[_ZN10tensorflow4core10RefCountedD5Ev]+0x120): undefined reference to `tensorflow::internal::LogMessageFatal::~LogMessageFatal()'
/usr/bin/ld: CMakeFiles/tensorflow_cc_test.dir/test.cpp.o: in function `tensorflow::SessionOptions::~SessionOptions()':
test.cpp:(.text._ZN10tensorflow14SessionOptionsD2Ev[_ZN10tensorflow14SessionOptionsD5Ev]+0x1c): undefined reference to `tensorflow::ConfigProto::~ConfigProto()'
/usr/bin/ld: CMakeFiles/tensorflow_cc_test.dir/test.cpp.o: in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >* tensorflow::internal::MakeCheckOpString<long, int>(long const&, int const&, char const*)':
test.cpp:(.text._ZN10tensorflow8internal17MakeCheckOpStringIliEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc[_ZN10tensorflow8internal17MakeCheckOpStringIliEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc]+0x37): undefined reference to `tensorflow::internal::CheckOpMessageBuilder::CheckOpMessageBuilder(char const*)'
/usr/bin/ld: test.cpp:(.text._ZN10tensorflow8internal17MakeCheckOpStringIliEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc[_ZN10tensorflow8internal17MakeCheckOpStringIliEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc]+0x61): undefined reference to `tensorflow::internal::CheckOpMessageBuilder::ForVar2()'
/usr/bin/ld: test.cpp:(.text._ZN10tensorflow8internal17MakeCheckOpStringIliEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc[_ZN10tensorflow8internal17MakeCheckOpStringIliEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc]+0x7f): undefined reference to `tensorflow::internal::CheckOpMessageBuilder::NewString[abi:cxx11]()'
/usr/bin/ld: test.cpp:(.text._ZN10tensorflow8internal17MakeCheckOpStringIliEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc[_ZN10tensorflow8internal17MakeCheckOpStringIliEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc]+0x8f): undefined reference to `tensorflow::internal::CheckOpMessageBuilder::~CheckOpMessageBuilder()'
/usr/bin/ld: test.cpp:(.text._ZN10tensorflow8internal17MakeCheckOpStringIliEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc[_ZN10tensorflow8internal17MakeCheckOpStringIliEEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_RKT0_PKc]+0xb6): undefined reference to `tensorflow::internal::CheckOpMessageBuilder::~CheckOpMessageBuilder()'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/tensorflow_cc_test.dir/build.make:97: tensorflow_cc_test] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/tensorflow_cc_test.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
```
My test.cpp is :
```
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/public/session.h"
#include <iostream>
using namespace std;
using namespace tensorflow;
int main()
{
    Session* session;
    Status status = NewSession(SessionOptions(), &session);
    if (!status.ok()) {
        cout << status.ToString() << "\n";
        return 1;
    }
    cout << "Session successfully created.\n";
}
```
How to solve the problems? I solved these errors when I modified the contents of CMakeLists.txt.
```
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
project(load_model)
set(TENSORFLOW /home/wmc/tensorflow1.x/tensorflow-r1.15/)
SET(TENSORFLOW_CORE_PATH ${CMAKE_SOURCE_DIR}/tensorflow/core)
MESSAGE(STATUS "TENSORFLOW_CORE_PATH ${TENSORFLOW_CORE_PATH}")
SET(TENSORFLOW_LIBARY ${CMAKE_SOURCE_DIR}/tensorflow/lib/libtensorflow-core.a)
MESSAGE(STATUS "TENSORFLOW_LIBARY ${TENSORFLOW_LIBARY}")
SET(TENSORFLOW_PROTOBUF_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/tensorflow/protobuf/include)
SET(TENSORFLOW_PROTOBUF_LIBRARY_PATH ${CMAKE_SOURCE_DIR}/tensorflow/protobuf/lib)
MESSAGE(STATUS "TENSORFLOW_PROTOBUF_INCLUDE_PATH ${TENSORFLOW_PROTOBUF_INCLUDE_PATH}")
MESSAGE(STATUS "TENSORFLOW_PROTOBUF_LIBRARY_PATH ${TENSORFLOW_PROTOBUF_LIBRARY_PATH}")
SET(TENSORFLOW_PROTOBUF_LIBRARY ${TENSORFLOW_PROTOBUF_LIBRARY_PATH}/libprotobuf.a)
SET(TENSORFLOW_PROTOC_LIBRARY ${TENSORFLOW_PROTOBUF_LIBRARY_PATH}/libprotoc.a)
MESSAGE(STATUS "TENSORFLOW_NSYNC_INCLUDE_PATH ${TENSORFLOW_PROTOBUF_LIBRARY}")
MESSAGE(STATUS "TENSORFLOW_NSYNC_LIBRARY_PATH ${TENSORFLOW_PROTOC_LIBRARY}")
SET(TENSORFLOW_NSYNC_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/tensorflow/nsyc/include)
SET(TENSORFLOW_NSYNC_LIBRARY_PATH ${CMAKE_SOURCE_DIR}/tensorflow/nsyc/lib)
MESSAGE(STATUS "TENSORFLOW_NSYNC_INCLUDE_PATH ${TENSORFLOW_NSYNC_INCLUDE_PATH}")
MESSAGE(STATUS "TENSORFLOW_NSYNC_LIBRARY_PATH ${TENSORFLOW_NSYNC_LIBRARY_PATH}")
SET(TENSORFLOW_NSYNC_LIBRARY ${TENSORFLOW_NSYNC_LIBRARY_PATH}/libnsync.a)
MESSAGE(STATUS "TENSORFLOW_NSYNC_LIBRARY ${TENSORFLOW_NSYNC_LIBRARY}")
SET(TENSORFLOW_PROTO_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/tensorflow/proto)
SET(TENSORFLOW_PROTO_TEXT_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/tensorflow/proto_text)
SET(TENSORFLOW_HOST_OBJ_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/tensorflow/host_obj/)
SET(TENSORFLOW_EIGEN_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/tensorflow/eigen3)
SET(TENSORFLOW_ABSL_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/tensorflow/absl)
SET(TENSORFLOW_THIRD_PARTY_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/tensorflow/tensorflow_third_party)
MESSAGE(STATUS "TENSORFLOW_PROTO_INCLUDE_PATH ${TENSORFLOW_PROTO_INCLUDE_PATH}")
MESSAGE(STATUS "TENSORFLOW_PROTO_TEXT_INCLUDE_PATH ${TENSORFLOW_PROTO_TEXT_INCLUDE_PATH}")
MESSAGE(STATUS "TENSORFLOW_HOST_OBJ_INCLUDE_PATH ${TENSORFLOW_HOST_OBJ_INCLUDE_PATH}")
MESSAGE(STATUS "TENSORFLOW_EIGEN_INCLUDE_PATH ${TENSORFLOW_EIGEN_INCLUDE_PATH}")
MESSAGE(STATUS "TENSORFLOW_ABSL_INCLUDE_PATH ${TENSORFLOW_ABSL_INCLUDE_PATH}")
MESSAGE(STATUS "TENSORFLOW_THIRD_PARTY_INCLUDE_PATH ${TENSORFLOW_THIRD_PARTY_INCLUDE_PATH}")
INCLUDE_DIRECTORIES(${TENSORFLOW_CORE_PATH})
INCLUDE_DIRECTORIES(${TENSORFLOW_PROTOBUF_INCLUDE_PATH})
INCLUDE_DIRECTORIES(${TENSORFLOW_PROTO_INCLUDE_PATH})
INCLUDE_DIRECTORIES(${TENSORFLOW_PROTO_TEXT_INCLUDE_PATH})
INCLUDE_DIRECTORIES(${TENSORFLOW_HOST_OBJ_INCLUDE_PATH})
INCLUDE_DIRECTORIES(${TENSORFLOW_EIGEN_INCLUDE_PATH})
INCLUDE_DIRECTORIES(${TENSORFLOW_ABSL_INCLUDE_PATH}) 
INCLUDE_DIRECTORIES(${TENSORFLOW_THIRD_PARTY_INCLUDE_PATH})
INCLUDE_DIRECTORIES(${TENSORFLOW_NSYNC_INCLUDE_PATH})
INCLUDE_DIRECTORIES(${TENSORFLOW_NSYNC_LIBRARY_PATH})
ADD_EXECUTABLE(load_model test.cpp)
SET(LOAD_MODEL_LIBRARIES
    ${TENSORFLOW_NSYNC_LIBRARY}
    ${TENSORFLOW_PROTOC_LIBRARY}
    ${TENSORFLOW_PROTOBUF_LIBRARY}
    )
SET(LDFLAGS "-std=c++11 -msse4.1 -fPIC -O3 -march=native -Wall -finline-functions -undefined")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}${LDFLAGS}")
add_compile_options(-Wl,--whole-archive  -lpthread -ldl)
TARGET_LINK_LIBRARIES(load_model -Wl,--whole-archive ${TENSORFLOW_LIBARY} -Wl,--no-whole-archive ${LOAD_MODEL_LIBRARIES}  ${CMAKE_CXX_FLAGS})
```

 Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62868">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62868">No</a>

**System information**
```
Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform and Distribution : Linux Ubuntu 22.04
TensorFlow installed from : source
TensorFlow version : 1.15
Python version: 3.10
Bazel version (if compiling from source): 0.24.1
GCC/Compiler version : 11.4.0
```
I am a newer to c++. I finish tensorflow compiling and generate the `libtensorflow-core.a` file. Now I want to test using cmake 2.8+.
 I create a `CMakeLists.txt` such as:
```
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

SET(TENSORFLOW_CORE_PATH ${CMAKE_SOURCE_DIR}/tensorflow/core)
MESSAGE(STATUS "TENSORFLOW_CORE_PATH ${TENSORFLOW_CORE_PATH}")

SET(TENSORFLOW_LIBARY ${CMAKE_SOURCE_DIR}/tensorflow/lib/libtensorflow-core.a)
MESSAGE(STATUS "TENSORFLOW_LIBARY ${TENSORFLOW_LIBARY}")

SET(TENSORFLOW_PROTOBUF_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/tensorflow/protobuf/include)
SET(TENSORFLOW_PROTOBUF_LIBRARY_PATH ${CMAKE_SOURCE_DIR}/tensorflow/protobuf/lib)
SET(TENSORFLOW_PROTOBUF_LIBRARY ${TENSORFLOW_PROTOBUF_LIBRARY_PATH}/libprotobuf.a)
#SET(TENSORFLOW_PROTOBUF_LITE_LIBRARY ${TENSORFLOW_PROTOBUF_LIBRARY_PATH}/libprotobuf-lite.a)
SET(TENSORFLOW_PROTOC_LIBRARY ${TENSORFLOW_PROTOBUF_LIBRARY_PATH}/libprotoc.a)
MESSAGE(STATUS "TENSORFLOW_PROTOBUF_INCLUDE_PATH ${TENSORFLOW_PROTOBUF_INCLUDE_PATH}")
MESSAGE(STATUS "TENSORFLOW_PROTOBUF_LIBRARY_PATH ${TENSORFLOW_PROTOBUF_LIBRARY_PATH}")

SET(TENSORFLOW_NSYNC_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/tensorflow/nsyc/include)
SET(TENSORFLOW_NSYNC_LIBRARY_PATH ${CMAKE_SOURCE_DIR}/tensorflow/nsyc/lib)
MESSAGE(STATUS "TENSORFLOW_NSYNC_INCLUDE_PATH ${TENSORFLOW_NSYNC_INCLUDE_PATH}")
MESSAGE(STATUS "TENSORFLOW_NSYNC_LIBRARY_PATH ${TENSORFLOW_NSYNC_LIBRARY_PATH}")
SET(TENSORFLOW_NSYNC_LIBRARY ${TENSORFLOW_NSYNC_LIBRARY_PATH}/libnsync.a)
MESSAGE(STATUS "TENSORFLOW_NSYNC_LIBRARY ${TENSORFLOW_NSYNC_LIBRARY}")

SET(TENSORFLOW_PROTO_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/tensorflow/proto)
SET(TENSORFLOW_PROTO_TEXT_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/tensorflow/proto_text)
SET(TENSORFLOW_HOST_OBJ_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/tensorflow/host_obj/)
SET(TENSORFLOW_EIGEN_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/tensorflow/eigen3)
SET(TENSORFLOW_ABSL_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/tensorflow/absl)
SET(TENSORFLOW_THIRD_PARTY_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/tensorflow/tensorflow_third_party)
MESSAGE(STATUS "TENSORFLOW_PROTO_INCLUDE_PATH ${TENSORFLOW_PROTO_INCLUDE_PATH}")
MESSAGE(STATUS "TENSORFLOW_PROTO_TEXT_INCLUDE_PATH ${TENSORFLOW_PROTO_TEXT_INCLUDE_PATH}")
MESSAGE(STATUS "TENSORFLOW_HOST_OBJ_INCLUDE_PATH ${TENSORFLOW_HOST_OBJ_INCLUDE_PATH}")
MESSAGE(STATUS "TENSORFLOW_EIGEN_INCLUDE_PATH ${TENSORFLOW_EIGEN_INCLUDE_PATH}")
MESSAGE(STATUS "TENSORFLOW_ABSL_INCLUDE_PATH ${TENSORFLOW_ABSL_INCLUDE_PATH}")
MESSAGE(STATUS "TENSORFLOW_THIRD_PARTY_INCLUDE_PATH ${TENSORFLOW_THIRD_PARTY_INCLUDE_PATH}")

INCLUDE_DIRECTORIES(${TENSORFLOW_CORE_PATH})
INCLUDE_DIRECTORIES(${TENSORFLOW_PROTOBUF_INCLUDE_PATH})
#INCLUDE_DIRECTORIES(${TENSORFLOW_PROTOBUF_LITE_LIBRARY})

INCLUDE_DIRECTORIES(${TENSORFLOW_PROTO_INCLUDE_PATH})
INCLUDE_DIRECTORIES(${TENSORFLOW_PROTO_TEXT_INCLUDE_PATH})
INCLUDE_DIRECTORIES(${TENSORFLOW_HOST_OBJ_INCLUDE_PATH})
INCLUDE_DIRECTORIES(${TENSORFLOW_EIGEN_INCLUDE_PATH})
INCLUDE_DIRECTORIES(${TENSORFLOW_ABSL_INCLUDE_PATH})
INCLUDE_DIRECTORIES(${TENSORFLOW_NSYNC_INCLUDE_PATH})
INCLUDE_DIRECTORIES(${TENSORFLOW_THIRD_PARTY_INCLUDE_PATH})

ADD_EXECUTABLE(load_model load_model.cpp)

SET(LOAD_MODEL_LIBRARIES
    ${TENSORFLOW_LIBARY}

    ${TENSORFLOW_PROTOBUF_LIBRARY}

    ${TENSORFLOW_PROTOC_LIBRARY}

    ${TENSORFLOW_NSYNC_LIBRARY}
    )
SET(LDFLAGS "-std=c++11 -msse4.1 -fPIC -O3 -march=native -Wall -finline-functions -undefined dynamic_lookup load")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}${LDFLAGS}")
MESSAGE(STATUS "CMAKE_CXX_COMPILER: ${CMAKE_CXX_COMPILER}")
MESSAGE(STATUS "CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}")
#TARGET_LINK_LIBRARIES(load_model ${LOAD_MODEL_LIBRARIES} ${CMAKE_CXX_FLAGS})
TARGET_LINK_LIBRARIES(load_model -Wl , --whole-archive ${TENSORFLOW_LIBARY} , --no-whole-archive ${LOAD_MODEL_LIBRARIES} -Wl ${CMAKE_CXX_FLAGS})
```
The ` load_model.cpp` such as:
```
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/public/session.h"
#include <iostream>
#include <string>
const static std::string kModelPath = "test_model.pb";
int main()
{
    using namespace tensorflow;
    auto session = NewSession(SessionOptions());
    if (session == nullptr)
    {
        std::cerr << "Tensorflow session create failded.\n";
        return -1;
    }
    else
    {
        std::cout << "Tensorflow session create success.\n";
    }
    Status status;
    // Read in the protobuf graph we exported
    GraphDef graph_def;
    status = ReadBinaryProto(Env::Default(), kModelPath, &graph_def);
    if (!status.ok())
    {
        std::cerr << "Error reading graph definition from " << kModelPath
            << ": " << status.ToString();
        return -1;
    }
    else
    {
        std::cout << "Read graph def success.\n";
    }
    // Add the graph to the session
    status = session->Create(graph_def);
    if (!status.ok())
    {
        std::cerr << "Error creating graph: " << status.ToString();
        return -1;
    }
    else
    {
        std::cout << "Create graph success.\n";
    }
    // Set model input
    Tensor hello(DT_STRING, TensorShape());
    hello.scalar<string>()() = "hello";
    Tensor tensorflow(DT_STRING, TensorShape());
    tensorflow.scalar<string>()() = " tensorflow";
    // Apply the loaded model
    std::vector<std::pair<string, tensorflow::Tensor>> inputs =
    {
        { "a", hello },
        { "b", tensorflow },
    }; // input
    std::vector<tensorflow::Tensor> outputs; // output
    status = session->Run(inputs, {"result"}, {}, &outputs);
    if (!status.ok())
    {
        std::cerr << status.ToString() << std::endl;
        return -1;
    }
    else
    {
        std::cout << "Run session successfully" << std::endl;
    }
    // Output the result
    const auto result = outputs[0].scalar<string>()();
    std::cout << "Result value: " << result << std::endl;
    status = session->Close();
    if (!status.ok())
    {
        std::cerr << "Session closed success";
        return -1;
    }
    return 0;
}
```
The   `test_model.pb` such as:
```
import tensorflow as tf
a = tf.Variable("hello ", name = "a")
b = tf.Variable("tensorflow", name = "b")
result = tf.add(a, b, name = "result")
with tf.Session() as sess:
    sess.run(tf.global_variables_initializer())
    tf.train.write_graph(sess.graph_def, '.', 'test_model.pb', as_text = False)
    print result.eval()
```
 `mkdir build` and `cd build`
 I run
`cmake ..`
`make`
The error logs are:
 ```
In file included from /home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:22,
                 from /home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/platform/env.h:24,
                 from /home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/load_model.cpp:3:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/status.h:49:22: error: ‘tensorflow::error’ has not been declared
   49 |   Status(tensorflow::error::Code code, tensorflow::StringPiece msg);
      |                      ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/status.h:49:33: error: expected ‘)’ before ‘code’
   49 |   Status(tensorflow::error::Code code, tensorflow::StringPiece msg);
      |         ~                       ^~~~~
      |                                 )
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/status.h:60:15: error: ‘error’ in namespace ‘tensorflow’ does not name a type
   60 |   tensorflow::error::Code code() const {
      |               ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/status.h:94:17: error: ‘error’ in namespace ‘tensorflow’ does not name a type
   94 |     tensorflow::error::Code code;
      |                 ^~~~~
In file included from /home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/platform/env.h:24,
                 from /home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/load_model.cpp:3:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:31:23: error: ‘error’ in namespace ‘tensorflow’ does not name a type; did you mean ‘errors’?
   31 | typedef ::tensorflow::error::Code Code;
      |                       ^~~~~
      |                       errors
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘void tensorflow::errors::AppendToMessage(tensorflow::Status*, Args ...)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:66:15: error: ‘class tensorflow::Status’ has no member named ‘code’
   66 |       status->code(),
      |               ^~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘tensorflow::Status tensorflow::errors::Cancelled(Args ...)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:96:23: error: ‘error’ is not a member of ‘tensorflow’; did you mean ‘errors’?
   96 |         ::tensorflow::error::CONST,                                      \
      |                       ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:104:1: note: in expansion of macro ‘DECLARE_ERROR’
  104 | DECLARE_ERROR(Cancelled, CANCELLED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘bool tensorflow::errors::IsCancelled(const tensorflow::Status&)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:19: error: ‘const class tensorflow::Status’ has no member named ‘code’
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                   ^~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:104:1: note: in expansion of macro ‘DECLARE_ERROR’
  104 | DECLARE_ERROR(Cancelled, CANCELLED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:43: error: ‘tensorflow::error’ has not been declared
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                                           ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:104:1: note: in expansion of macro ‘DECLARE_ERROR’
  104 | DECLARE_ERROR(Cancelled, CANCELLED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘tensorflow::Status tensorflow::errors::InvalidArgument(Args ...)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:96:23: error: ‘error’ is not a member of ‘tensorflow’; did you mean ‘errors’?
   96 |         ::tensorflow::error::CONST,                                      \
      |                       ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:105:1: note: in expansion of macro ‘DECLARE_ERROR’
  105 | DECLARE_ERROR(InvalidArgument, INVALID_ARGUMENT)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘bool tensorflow::errors::IsInvalidArgument(const tensorflow::Status&)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:19: error: ‘const class tensorflow::Status’ has no member named ‘code’
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                   ^~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:105:1: note: in expansion of macro ‘DECLARE_ERROR’
  105 | DECLARE_ERROR(InvalidArgument, INVALID_ARGUMENT)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:43: error: ‘tensorflow::error’ has not been declared
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                                           ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:105:1: note: in expansion of macro ‘DECLARE_ERROR’
  105 | DECLARE_ERROR(InvalidArgument, INVALID_ARGUMENT)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘tensorflow::Status tensorflow::errors::NotFound(Args ...)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:96:23: error: ‘error’ is not a member of ‘tensorflow’; did you mean ‘errors’?
   96 |         ::tensorflow::error::CONST,                                      \
      |                       ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:106:1: note: in expansion of macro ‘DECLARE_ERROR’
  106 | DECLARE_ERROR(NotFound, NOT_FOUND)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘bool tensorflow::errors::IsNotFound(const tensorflow::Status&)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:19: error: ‘const class tensorflow::Status’ has no member named ‘code’
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                   ^~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:106:1: note: in expansion of macro ‘DECLARE_ERROR’
  106 | DECLARE_ERROR(NotFound, NOT_FOUND)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:43: error: ‘tensorflow::error’ has not been declared
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                                           ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:106:1: note: in expansion of macro ‘DECLARE_ERROR’
  106 | DECLARE_ERROR(NotFound, NOT_FOUND)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘tensorflow::Status tensorflow::errors::AlreadyExists(Args ...)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:96:23: error: ‘error’ is not a member of ‘tensorflow’; did you mean ‘errors’?
   96 |         ::tensorflow::error::CONST,                                      \
      |                       ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:107:1: note: in expansion of macro ‘DECLARE_ERROR’
  107 | DECLARE_ERROR(AlreadyExists, ALREADY_EXISTS)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘bool tensorflow::errors::IsAlreadyExists(const tensorflow::Status&)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:19: error: ‘const class tensorflow::Status’ has no member named ‘code’
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                   ^~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:107:1: note: in expansion of macro ‘DECLARE_ERROR’
  107 | DECLARE_ERROR(AlreadyExists, ALREADY_EXISTS)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:43: error: ‘tensorflow::error’ has not been declared
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                                           ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:107:1: note: in expansion of macro ‘DECLARE_ERROR’
  107 | DECLARE_ERROR(AlreadyExists, ALREADY_EXISTS)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘tensorflow::Status tensorflow::errors::ResourceExhausted(Args ...)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:96:23: error: ‘error’ is not a member of ‘tensorflow’; did you mean ‘errors’?
   96 |         ::tensorflow::error::CONST,                                      \
      |                       ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:108:1: note: in expansion of macro ‘DECLARE_ERROR’
  108 | DECLARE_ERROR(ResourceExhausted, RESOURCE_EXHAUSTED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘bool tensorflow::errors::IsResourceExhausted(const tensorflow::Status&)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:19: error: ‘const class tensorflow::Status’ has no member named ‘code’
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                   ^~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:108:1: note: in expansion of macro ‘DECLARE_ERROR’
  108 | DECLARE_ERROR(ResourceExhausted, RESOURCE_EXHAUSTED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:43: error: ‘tensorflow::error’ has not been declared
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                                           ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:108:1: note: in expansion of macro ‘DECLARE_ERROR’
  108 | DECLARE_ERROR(ResourceExhausted, RESOURCE_EXHAUSTED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘tensorflow::Status tensorflow::errors::Unavailable(Args ...)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:96:23: error: ‘error’ is not a member of ‘tensorflow’; did you mean ‘errors’?
   96 |         ::tensorflow::error::CONST,                                      \
      |                       ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:109:1: note: in expansion of macro ‘DECLARE_ERROR’
  109 | DECLARE_ERROR(Unavailable, UNAVAILABLE)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘bool tensorflow::errors::IsUnavailable(const tensorflow::Status&)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:19: error: ‘const class tensorflow::Status’ has no member named ‘code’
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                   ^~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:109:1: note: in expansion of macro ‘DECLARE_ERROR’
  109 | DECLARE_ERROR(Unavailable, UNAVAILABLE)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:43: error: ‘tensorflow::error’ has not been declared
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                                           ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:109:1: note: in expansion of macro ‘DECLARE_ERROR’
  109 | DECLARE_ERROR(Unavailable, UNAVAILABLE)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘tensorflow::Status tensorflow::errors::FailedPrecondition(Args ...)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:96:23: error: ‘error’ is not a member of ‘tensorflow’; did you mean ‘errors’?
   96 |         ::tensorflow::error::CONST,                                      \
      |                       ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:110:1: note: in expansion of macro ‘DECLARE_ERROR’
  110 | DECLARE_ERROR(FailedPrecondition, FAILED_PRECONDITION)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘bool tensorflow::errors::IsFailedPrecondition(const tensorflow::Status&)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:19: error: ‘const class tensorflow::Status’ has no member named ‘code’
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                   ^~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:110:1: note: in expansion of macro ‘DECLARE_ERROR’
  110 | DECLARE_ERROR(FailedPrecondition, FAILED_PRECONDITION)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:43: error: ‘tensorflow::error’ has not been declared
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                                           ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:110:1: note: in expansion of macro ‘DECLARE_ERROR’
  110 | DECLARE_ERROR(FailedPrecondition, FAILED_PRECONDITION)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘tensorflow::Status tensorflow::errors::OutOfRange(Args ...)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:96:23: error: ‘error’ is not a member of ‘tensorflow’; did you mean ‘errors’?
   96 |         ::tensorflow::error::CONST,                                      \
      |                       ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:111:1: note: in expansion of macro ‘DECLARE_ERROR’
  111 | DECLARE_ERROR(OutOfRange, OUT_OF_RANGE)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘bool tensorflow::errors::IsOutOfRange(const tensorflow::Status&)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:19: error: ‘const class tensorflow::Status’ has no member named ‘code’
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                   ^~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:111:1: note: in expansion of macro ‘DECLARE_ERROR’
  111 | DECLARE_ERROR(OutOfRange, OUT_OF_RANGE)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:43: error: ‘tensorflow::error’ has not been declared
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                                           ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:111:1: note: in expansion of macro ‘DECLARE_ERROR’
  111 | DECLARE_ERROR(OutOfRange, OUT_OF_RANGE)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘tensorflow::Status tensorflow::errors::Unimplemented(Args ...)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:96:23: error: ‘error’ is not a member of ‘tensorflow’; did you mean ‘errors’?
   96 |         ::tensorflow::error::CONST,                                      \
      |                       ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:112:1: note: in expansion of macro ‘DECLARE_ERROR’
  112 | DECLARE_ERROR(Unimplemented, UNIMPLEMENTED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘bool tensorflow::errors::IsUnimplemented(const tensorflow::Status&)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:19: error: ‘const class tensorflow::Status’ has no member named ‘code’
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                   ^~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:112:1: note: in expansion of macro ‘DECLARE_ERROR’
  112 | DECLARE_ERROR(Unimplemented, UNIMPLEMENTED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:43: error: ‘tensorflow::error’ has not been declared
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                                           ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:112:1: note: in expansion of macro ‘DECLARE_ERROR’
  112 | DECLARE_ERROR(Unimplemented, UNIMPLEMENTED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘tensorflow::Status tensorflow::errors::Internal(Args ...)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:96:23: error: ‘error’ is not a member of ‘tensorflow’; did you mean ‘errors’?
   96 |         ::tensorflow::error::CONST,                                      \
      |                       ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:113:1: note: in expansion of macro ‘DECLARE_ERROR’
  113 | DECLARE_ERROR(Internal, INTERNAL)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘bool tensorflow::errors::IsInternal(const tensorflow::Status&)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:19: error: ‘const class tensorflow::Status’ has no member named ‘code’
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                   ^~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:113:1: note: in expansion of macro ‘DECLARE_ERROR’
  113 | DECLARE_ERROR(Internal, INTERNAL)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:43: error: ‘tensorflow::error’ has not been declared
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                                           ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:113:1: note: in expansion of macro ‘DECLARE_ERROR’
  113 | DECLARE_ERROR(Internal, INTERNAL)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘tensorflow::Status tensorflow::errors::Aborted(Args ...)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:96:23: error: ‘error’ is not a member of ‘tensorflow’; did you mean ‘errors’?
   96 |         ::tensorflow::error::CONST,                                      \
      |                       ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:114:1: note: in expansion of macro ‘DECLARE_ERROR’
  114 | DECLARE_ERROR(Aborted, ABORTED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘bool tensorflow::errors::IsAborted(const tensorflow::Status&)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:19: error: ‘const class tensorflow::Status’ has no member named ‘code’
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                   ^~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:114:1: note: in expansion of macro ‘DECLARE_ERROR’
  114 | DECLARE_ERROR(Aborted, ABORTED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:43: error: ‘tensorflow::error’ has not been declared
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                                           ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:114:1: note: in expansion of macro ‘DECLARE_ERROR’
  114 | DECLARE_ERROR(Aborted, ABORTED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘tensorflow::Status tensorflow::errors::DeadlineExceeded(Args ...)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:96:23: error: ‘error’ is not a member of ‘tensorflow’; did you mean ‘errors’?
   96 |         ::tensorflow::error::CONST,                                      \
      |                       ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:115:1: note: in expansion of macro ‘DECLARE_ERROR’
  115 | DECLARE_ERROR(DeadlineExceeded, DEADLINE_EXCEEDED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘bool tensorflow::errors::IsDeadlineExceeded(const tensorflow::Status&)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:19: error: ‘const class tensorflow::Status’ has no member named ‘code’
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                   ^~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:115:1: note: in expansion of macro ‘DECLARE_ERROR’
  115 | DECLARE_ERROR(DeadlineExceeded, DEADLINE_EXCEEDED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:43: error: ‘tensorflow::error’ has not been declared
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                                           ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:115:1: note: in expansion of macro ‘DECLARE_ERROR’
  115 | DECLARE_ERROR(DeadlineExceeded, DEADLINE_EXCEEDED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘tensorflow::Status tensorflow::errors::DataLoss(Args ...)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:96:23: error: ‘error’ is not a member of ‘tensorflow’; did you mean ‘errors’?
   96 |         ::tensorflow::error::CONST,                                      \
      |                       ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:116:1: note: in expansion of macro ‘DECLARE_ERROR’
  116 | DECLARE_ERROR(DataLoss, DATA_LOSS)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘bool tensorflow::errors::IsDataLoss(const tensorflow::Status&)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:19: error: ‘const class tensorflow::Status’ has no member named ‘code’
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                   ^~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:116:1: note: in expansion of macro ‘DECLARE_ERROR’
  116 | DECLARE_ERROR(DataLoss, DATA_LOSS)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:43: error: ‘tensorflow::error’ has not been declared
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                                           ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:116:1: note: in expansion of macro ‘DECLARE_ERROR’
  116 | DECLARE_ERROR(DataLoss, DATA_LOSS)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘tensorflow::Status tensorflow::errors::Unknown(Args ...)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:96:23: error: ‘error’ is not a member of ‘tensorflow’; did you mean ‘errors’?
   96 |         ::tensorflow::error::CONST,                                      \
      |                       ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:117:1: note: in expansion of macro ‘DECLARE_ERROR’
  117 | DECLARE_ERROR(Unknown, UNKNOWN)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘bool tensorflow::errors::IsUnknown(const tensorflow::Status&)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:19: error: ‘const class tensorflow::Status’ has no member named ‘code’
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                   ^~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:117:1: note: in expansion of macro ‘DECLARE_ERROR’
  117 | DECLARE_ERROR(Unknown, UNKNOWN)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:43: error: ‘tensorflow::error’ has not been declared
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                                           ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:117:1: note: in expansion of macro ‘DECLARE_ERROR’
  117 | DECLARE_ERROR(Unknown, UNKNOWN)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘tensorflow::Status tensorflow::errors::PermissionDenied(Args ...)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:96:23: error: ‘error’ is not a member of ‘tensorflow’; did you mean ‘errors’?
   96 |         ::tensorflow::error::CONST,                                      \
      |                       ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:118:1: note: in expansion of macro ‘DECLARE_ERROR’
  118 | DECLARE_ERROR(PermissionDenied, PERMISSION_DENIED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘bool tensorflow::errors::IsPermissionDenied(const tensorflow::Status&)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:19: error: ‘const class tensorflow::Status’ has no member named ‘code’
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                   ^~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:118:1: note: in expansion of macro ‘DECLARE_ERROR’
  118 | DECLARE_ERROR(PermissionDenied, PERMISSION_DENIED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:43: error: ‘tensorflow::error’ has not been declared
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                                           ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:118:1: note: in expansion of macro ‘DECLARE_ERROR’
  118 | DECLARE_ERROR(PermissionDenied, PERMISSION_DENIED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘tensorflow::Status tensorflow::errors::Unauthenticated(Args ...)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:96:23: error: ‘error’ is not a member of ‘tensorflow’; did you mean ‘errors’?
   96 |         ::tensorflow::error::CONST,                                      \
      |                       ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:119:1: note: in expansion of macro ‘DECLARE_ERROR’
  119 | DECLARE_ERROR(Unauthenticated, UNAUTHENTICATED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: In function ‘bool tensorflow::errors::IsUnauthenticated(const tensorflow::Status&)’:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:19: error: ‘const class tensorflow::Status’ has no member named ‘code’
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                   ^~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:119:1: note: in expansion of macro ‘DECLARE_ERROR’
  119 | DECLARE_ERROR(Unauthenticated, UNAUTHENTICATED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:101:43: error: ‘tensorflow::error’ has not been declared
  101 |     return status.code() == ::tensorflow::error::CONST;                  \
      |                                           ^~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:119:1: note: in expansion of macro ‘DECLARE_ERROR’
  119 | DECLARE_ERROR(Unauthenticated, UNAUTHENTICATED)
      | ^~~~~~~~~~~~~
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h: At global scope:
/home/wmc/tensorflow1.x/tensorflowr1.15_static_lib/test_static_lib-x86/tensorflow/core/lib/core/errors.h:156:21: error: ‘tensorflow::error’ has not been declared
  156 | using ::tensorflow::error::OK;
      |                     ^~~~~
make[2]: *** [CMakeFiles/load_model.dir/build.make:76: CMakeFiles/load_model.dir/load_model.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/load_model.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
```
Can anyone give me some help? Thank you very much!