I've been practising client-server shared memory and the APUE test book gives an example and won't compile.
The errors are:
undefined reference to '_TELL_WAIT'
undefined reference to '_TELL_CHILD'
undefined reference to '_WAIT_CHILD'
undefined reference to '_WAIT_PARENT'
undefined reference to '_TELL_PARENT'.
I think the library is linked okay, if you're referring to "apue.h"? This header file works on other examples so, the apue.h code is correct.
The command line I am using to compile the example is:
gcc -O2 -o sharedMemoryPage539Figure15.33.exe sharedMemoryPage 539Figure15.33.c
I have found some other online examples which run, after some code adjustments, however I expect the text book to run with less complication than the online examples I have currently ended up having to use.
More out of curiosity know to get the text book example to work.