-1
#include <lib.h>
#include <unistd.h>

int mq_close(int queue)
{
    message m;
    m.m3_i1= queue;
    return (_syscall(PM_PROC_NR,MQ_CLOSE,&m));
}

While I am updating my libraries in minix I am getting this error "bad include syntax error".. Help me out in this.

John Kugelman
  • 349,597
  • 67
  • 533
  • 578
  • Where is your `main()` function? Did you eat it? – Rizier123 Oct 26 '14 at 05:38
  • Please show the exact error message, with file names, line numbers and all, indented as code. Apparently, the message is "bad include syntax error", but what you show is the correct syntax. So, either the error message is incorrectly quoted or it does not apply to the code you show but rather to something in one of the headers you include. My money would be on "problem in ``", assuming that is your header rather than a system header. As a general rule, put system headers in angle brackets (``); put other headers in quotes (`"header.h"`). – Jonathan Leffler Oct 26 '14 at 12:25

1 Answers1

0

Change

#include <lib.h>

into

#include <minix/lib.h>

Assuming you installed minix using the guide.

Mekap
  • 2,065
  • 14
  • 26