This question already has an answer here:
I'm trying to compile my code with a Makefile but I keep getting the error:
Undefinded reference to symbol pow@@GLIBC_2.2.5'
I'll provide my makefile below but here are the libraries I'm using:
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <ctype.h>
And here's my Makefile
all: swap
swap: first.c
gcc -Wall -Werror -fsanitize=address -std=c11 first.c -o first
clean:
rm -rf first
Do you know what's wrong or what i need to add to my makefile