Iam trying to access two of my C functions in a Cpp code using extern "C". I am using it as follows :

```
#include <stdio.h>
#include <stdlib.h>
#include <cstdio>

extern "C"
{
#include "pltfrm.h"
#include "xil_printf.h"

}

int main()
{
    init_platform();

    print("Hello World\n\r");
    print("Successfully ran Hello World application");
    cleanup_platform();
    return 0;
}

```

Functions `"init_platform"` and `"cleanup_platform"` are declared inside `"pltfrm.h"`

Iam getting "Undefined reference to" error on both functions.What am i doing wrong? iam compiling using eclipse build project option for c++ empty project template.