Undefined reference to ‘operations’

I have a project to calculate some operations with large numbers.
I have 2 .c files and one .h . The problem is that when I try to run it says “undefined reference to ‘operations’ “. I know something is rong with names because “mainOperations.c” can`t find “operations.h”. I use codeblocks (program in C code).

This is a how its called:

mainOperations.c :

    //...
    #include "operations.h"

int main()
{
    //...code
    for(i=1;i<=longthNumbers;i++)
        operations(choseOperation,numbers[i],longthNumbers);
    //...code

}

operations.c

void operationsLargeNumbers(int choseO,double nr[101],int lengthV)
{
//...code
}

operations.h :

    void operationsLargeNumbers(int choseO,double nr[],int lengthV);


Source: c#

Leave a Reply