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

which gcc version do you use,I complied print so many error #8

Closed
newyun1979 opened this issue Mar 23, 2020 · 3 comments
Closed

which gcc version do you use,I complied print so many error #8

newyun1979 opened this issue Mar 23, 2020 · 3 comments

Comments

@newyun1979
Copy link

like this
/home/a/smplc++/SMPLpp-master/include/toolbox/Exception.h:50:35: note: in definition of macro ‘smpl_error’
#define smpl_error(module, error) Exception(module, error,
^~~~~~~~~
/home/a/smplc++/SMPLpp-master/include/toolbox/Exception.h:154:5: note: initializing argument 4 of ‘xt::smpl::Exception::Exception(int, int, int, int, int)’
Exception(const std::string module, const std::string error,
^~~~~~~~~
/home/a/smplc++/SMPLpp-master/include/toolbox/Exception.h:50:35: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
#define smpl_error(module, error) Exception(module, error,
^~~~~~~~~~~~~~~~~~~~~~~~~~
func, FILE, LINE)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/a/smplc++/SMPLpp-master/include/toolbox/Exception.h:50:35: note: in definition of macro ‘smpl_error’
#define smpl_error(module, error) Exception(module, error,
^~~~~~~~~
/home/a/smplc++/SMPLpp-master/include/toolbox/Exception.h:154:5: note: initializing argument 1 of ‘xt::smpl::Exception::Exception(int, int, int, int, int)’
Exception(const std::string module, const std::string error,
^~~~~~~~~
/home/a/smplc++/SMPLpp-master/include/toolbox/Exception.h:50:35: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
#define smpl_error(module, error) Exception(module, error,
^~~~~~~~~~~~~~~~~~~~~~~~~~
func, FILE, LINE)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/a/smplc++/SMPLpp-master/include/toolbox/Exception.h:50:35: note: in definition of macro ‘smpl_error’
#define smpl_error(module, error) Exception(module, error,
^~~~~~~~~

@newyun1979
Copy link
Author

sorry.I renew download the code,it worked, but I use libtorch 1.0.1

/usr/local/include/torch/csrc/api/include/torch/nn/modules/functional.h:63:36: error: expected ‘)’ before ‘function’
explicit FunctionalImpl(Function function);
^~~~~~~~
/usr/local/include/torch/csrc/api/include/torch/nn/modules/functional.h:68:25: error: ‘enable_if_t’ in namespace ‘xt::torch’ does not name a template type
typename = torch::enable_if_t<(sizeof...(Args) > 0)>>
^~~~~~~~~~~
/usr/local/include/torch/csrc/api/include/torch/nn/modules/functional.h:68:36: error: expected ‘>’ before ‘<’ token
typename = torch::enable_if_t<(sizeof...(Args) > 0)>>
^
/usr/local/include/torch/csrc/api/include/torch/nn/modules/functional.h:89:3: error: ‘Function’ does not name a type; did you mean ‘union’?
Function function_;
^~~~~~~~
union

@chongyi-zheng
Copy link
Owner

Do you solve the problem?

@chongyi-zheng
Copy link
Owner

Close for inactivity

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

2 participants