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

"library_error" in QNX environment #241

Open
xyy-jia opened this issue Dec 2, 2024 · 0 comments
Open

"library_error" in QNX environment #241

xyy-jia opened this issue Dec 2, 2024 · 0 comments

Comments

@xyy-jia
Copy link

xyy-jia commented Dec 2, 2024

`#include
#include <boost/interprocess/ipc/message_queue.hpp>
#include <boost/interprocess/permissions.hpp>

int main(){

boost::interprocess::permissions permissions;
printf("***************************** 1\n");


int status = permissions.get_permissions();
printf("***************************** 2 [0x%x]\n",status);



// permissions.set_permissions(status); 
// permissions.set_default();
permissions.set_unrestricted();
printf("***************************** 3.3\n");



boost::interprocess::message_queue mq(boost::interprocess::open_or_create,"my_queue2",100,200);
// mq.close();
printf("***************************** 4\n");



mq.remove("my_queue");
printf("***************************** 5\n");

return 0;

}`

Always report an error in the QNX environment:
erminate called after throwing an instance of 'boost::interprocess::interprocess_exception'
what(): boost::interprocess_exception::library_error

cppalliance/boost-gecko#150 (comment)

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

1 participant