Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kjrxx opened this issue Dec 27, 2019 · 2 comments
Open

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

kjrxx opened this issue Dec 27, 2019 · 2 comments

Comments

@kjrxx
Copy link

kjrxx commented Dec 27, 2019

/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

@TheRustlessSummer
Copy link

hello, I have the same question with you. How you change this question?

@tsindhuja
Copy link

You can change
if (!data.starts_with("PIEH")) to
if (!str_util::StartsWith(data, "PIEH"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants