(.text+0x12c): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `norm1(double*, int)' - ERROR

For some reason I keep getting this error, I have double checked my code and cannot find any errors myself, help would be greatly appreciated.

MAIN.cpp

#include <cstdlib>
#include <stdio.h>
#include <iostream>
#include "question_three.h"

using namespace std;

int main(void) {
int size;

double vector1[10],vector2[10];

cout << "Please Enter The Size Of Vectors You Want: ";
cin >> size;

for (i = 0; i < size; i++){
cout << "Please Enter A Value For Position " << i << " Of Vector 1: ";
cin >> vector1[i];
cout << "Please Enter A Value For Position " << i << " Of Vector 2: ";
cin >> vector2[i];
}

cout << "The Sum Of The Absolute Value Of Vector 1 Are: " << norm1(vector1,size) << endl;
return 0;
}
---------------------------------------------------

question_three.c

double norm1(double vector1[],int size){
return size;
}

--------------------------------------------------

question_three.h

#ifndef question_three_H
#define question_three_H

double norm1(double vector1[],int size);

#endif

closed account (48T7M4Gy)
for (int i = 0; i < size; i++){
Topic archived. No new replies allowed.