Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
0

0xeffe

@0xeffe
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • create message queues
    0 0xeffe

    I have got the solution for your problem. when you type cat /usr/include/sys/msg.h you can see that the struct is commented out when __USE_GNU is not defined. /usr/include/sys/msg.h:

    #ifdef __USE_GNU
    /* Template for struct to be used as argument for `msgsnd' and `msgrcv'. */
    struct msgbuf
    {
    long int mtype; /* type of received/sent message */
    char mtext[1]; /* text of the message */
    };
    #endif

    A bit of Googeling brings the result that you should #define _GNU_SOURCE to use that struct. It is important to define it before you #include <sys/msg.h>. I hope i helped. greetings 0xeffe TLDR solution:

    #define _GNU_SOURCE
    #include <sys/msg.h>

    C / C++ / MFC tutorial data-structures help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups