Skip to content

make error:has no member named ‘starts_with’ #68

@kjrxx

Description

@kjrxx

/home/jrubuntu/catkin_ws/src/demon/lmbspecialops/src/decode_ppm_op.cc: In member function ‘virtual void DecodePpmOp::Compute(tensorflow::OpKernelContext*)’:
/home/jrubuntu/catkin_ws/src/demon/lmbspecialops/src/decode_ppm_op.cc:136:15: error: ‘const StringPiece {aka const class absl::string_view}’ has no member named ‘starts_with’
if (!data.starts_with("P6")) {
^
/home/jrubuntu/catkin_ws/src/demon/lmbspecialops/src/decode_flo_op.cc: In member function ‘virtual void DecodeFloOp::Compute(tensorflow::OpKernelContext*)’:
/home/jrubuntu/catkin_ws/src/demon/lmbspecialops/src/decode_flo_op.cc:65:15: error: ‘const StringPiece {aka const class absl::string_view}’ has no member named ‘starts_with’
if (!data.starts_with("PIEH")) {
^
/home/jrubuntu/catkin_ws/src/demon/lmbspecialops/src/decode_pfm_op.cc: In member function ‘virtual void DecodePfmOp::Compute(tensorflow::OpKernelContext*)’:
/home/jrubuntu/catkin_ws/src/demon/lmbspecialops/src/decode_pfm_op.cc:193:14: error: ‘const StringPiece {aka const class absl::string_view}’ has no member named ‘starts_with’
if (data.starts_with("PF")) {
^
/home/jrubuntu/catkin_ws/src/demon/lmbspecialops/src/decode_pfm_op.cc:197:21: error: ‘const StringPiece {aka const class absl::string_view}’ has no member named ‘starts_with’
} else if (data.starts_with("Pf")) {
^
lib/CMakeFiles/lmbspecialops.dir/build.make:398: recipe for target 'lib/CMakeFiles/lmbspecialops.dir/decode_flo_op.cc.o' failed
make[2]: *** [lib/CMakeFiles/lmbspecialops.dir/decode_flo_op.cc.o] Error 1
make[2]: *** 正在等待未完成的任务....
lib/CMakeFiles/lmbspecialops.dir/build.make:182: recipe for target 'lib/CMakeFiles/lmbspecialops.dir/decode_ppm_op.cc.o' failed
make[2]: *** [lib/CMakeFiles/lmbspecialops.dir/decode_ppm_op.cc.o] Error 1
lib/CMakeFiles/lmbspecialops.dir/build.make:470: recipe for target 'lib/CMakeFiles/lmbspecialops.dir/decode_pfm_op.cc.o' failed
make[2]: *** [lib/CMakeFiles/lmbspecialops.dir/decode_pfm_op.cc.o] Error 1
CMakeFiles/Makefile2:164: recipe for target 'lib/CMakeFiles/lmbspecialops.dir/all' failed
make[1]: *** [lib/CMakeFiles/lmbspecialops.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2

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