Язык Си. Почему возникают ошибки? Ведь библиотека, в которой определены srand и drand подключена
 Ошибки: 
ссылка на неразрешённый внешний символ  _srand48 и функции _main
ссылка на неразрешённый внешний символ  _drand48 и функции _main
/***************************************************************************
#define _XOPEN_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
// constant
#define LIMIT 65536
int main(int argc, char* argv[])
{
    // TODO: comment me
    if (argc != 2 && argc != 3)
    {
        printf("Usage: generate n [s]\n");
        return 1;
    }
    // TODO: comment me
    int n = atoi(argv[1]);
    // TODO: comment me
    if (argc == 3)
    {
        srand48((long int) atoi(argv[2]));
    }
    else
    {
        srand48((long int) time(NULL));
    }
    // TODO: comment me
    for (int i = 0; i < n; i++)
    {
       printf("%i\n", (int) (drand48() * LIMIT));
    }
    // success
    return 0;
}