Quantcast
Viewing all articles
Browse latest Browse all 22162

Cannot compile my Makefile? Undefined reference to symbol 'pow@@GLIBC_2.2.5' [duplicate]

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


Viewing all articles
Browse latest Browse all 22162

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>