MicroOS Desktop Use to Help with ALP Feedback
Compiling a program with with a rpc call, the following error: Code: g++ -g -I/usr/include/ntirpc -c vxi11_cmd.cc -o vxi11_cmd.o In file included from /usr/include/ntirpc/rpc/rpc.h:47, from vxi11_user.h:31, from vxi11_cmd.cc:25: /usr/include/ntirpc/rpc/xdr.h:136:18:error: declaration of ‘vio_type xdr_vio::vio_type’ changes meaning of ‘vio_type’ [-fpermissive] 136 | vio_type vio_type; /* type of buffer */ This error is thrown in a system file. Nothing included before (#include <rpc/rpc.h). Anybody knows, how to solve this problem? Original Program: https://github.com/applied-optics/vxi11 Thanks, Johannes
g++ -g -I/usr/include/ntirpc -c vxi11_cmd.cc -o vxi11_cmd.o In file included from /usr/include/ntirpc/rpc/rpc.h:47, from vxi11_user.h:31, from vxi11_cmd.cc:25: /usr/include/ntirpc/rpc/xdr.h:136:18:error: declaration of ‘vio_type xdr_vio::vio_type’ changes meaning of ‘vio_type’ [-fpermissive] 136 | vio_type vio_type; /* type of buffer */
Thread moved to "Programming/Scripting".
openSUSE Leap 15.4; KDE Plasma 5.24.4; testing Tumbleweed.
Originally Posted by Jke61 Anybody knows, how to solve this problem? Open bug report on project site. This is invalid in C++ (although some compilers do tolerate it). You may also try to add -fpermissive as suggested. http://www.cplusplus.com/forum/general/171799/ https://stackoverflow.com/questions/...ning-of-symbol
Forum Rules