I'm doing a simple program however using header file .h (header) and a hello world function, but I have the following alert message: Undefined reference to 'print' . I asked someone else to test it and said it worked out what it might still be?
Follow the code below:
=== Arquivo MainCodeCount.c ==
#include <stdio.h>
#include <stdlib.h>
#include "LibCodeCount.h"
int main(int argc, char *argv[])
{
imprime();
return 0;
}
=== Arquivo CodeCount.c ===
#include <stdio.h>
#include "LibCodeCount.h"
void imprime()
{
printf("Ola mundo!\n");
}
=== Arquivo CodeCount.h (header) ==
void imprime();