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

compile error #4

Open
Jiaxin-Xie opened this issue Jan 15, 2017 · 2 comments
Open

compile error #4

Jiaxin-Xie opened this issue Jan 15, 2017 · 2 comments

Comments

@Jiaxin-Xie
Copy link

Hi, Haoshu
Sorry to bother you. I tried a lot but failed to deal with this problem.
Everytime I use the command--make, it showed this error. So I can't compile the code successfully. ( It is ok to compile the caffe code contributed by BVLC. )
/usr/include/boost/property_tree/detail/json_parser_read.hpp: In constructor‘boost::property_tree::json_parser::json_grammar::definition::definition(constboost::property_tree::json_parser::json_grammar&)':
/usr/include/boost/property_tree/detail/json_parser_read.hpp:257:264: error: 'type name'declared as function returning an array
/usr/include/boost/property_tree/detail/json_parser_read.hpp:257:264: error: 'type name'declared as function returning an array
make: *** [.build_release/cuda/src/caffe/layers/detection_output_layer.o] Error 1
make: *** Waiting for unfinished jobs....

@Fang-Haoshu
Copy link
Member

Hi,

That's a problem in SSD detection layer and one possible reason is that your gcc version is too low.
Update it to 5.3 and try again.

Good luck!

@hszhoushen
Copy link

step 1
$ find / -name json_parser_read.hpp
step 2
$ sudo vim /...../..../..../..../json_parser_read.hpp
step 3
comment the line between 257 to 264.
and then, congrats.

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