I have a simple program where when compiling of an error
undefined reference to 'increment' |
main.c
:
#include <stdio.h>
#include "incrementar.h"
int main()
{
printf("Numero incrementado%d!", incrementar(10));
return 0;
}
incrementar.h:
int incrementar(int i)
{
return i++;
}
incrementar.c:
int incrementar(int i)
{
return i++;
}
Note: I'm using Code :: Blocks.