I am new to QNX Nuetrino…
I am just trying to compile some progs using IPC
but when i am compiling the code which has msgget syscall
i got the following error
implicit declaration of function int msgget(...)' implicit declaration of function int msgsnd(…)’
remove the extern keyword, you put extern if you want your function/variable to be read externally, not if you want to use a external defined function.
You say:
My function msgget(bla, blubb); should be able to be read by other sources.
You want:
My app wants to read the function called msgget(); from another source.
So you should be fine without the extern keyword and a later linking to the library the function is in
extern "C" {
int msgget(key_t __key, int __msgflg);
}
… since you are apparently compiling C++ in this case; and you haven’t stated the linkage properties of the source file, but perhaps that is written in ‘C’ (a lot of stuff is written in C these days