KDevelop, Semantic analysis, Makefile, & math.h

Philipp A. flying-sheep at web.de
Fri Oct 25 12:51:44 UTC 2013

hi, in a simple project built with a simple Makefile, there are two
libraries linked: math.h and gsl (gnu scientific library)

while the semantic analysis finds the latter and it compiles and runs fine,
it has problems with math.h, telling me that it can’t find the declaration
of “sqrt”.


CFLAGS=--std=c11 -Wall -pedantic
LDFLAGS=-lgsl -lgslcblas -lm

    $(CC) $(CFLAGS) -g -o c-pcor main.c $(LDFLAGS)
    rm -vfr *~ c-pcor

main.h (excerpt):

#include <stdio.h>#include <stdlib.h>#include <math.h>#include <stdbool.h>
#include <gsl/gsl_matrix.h>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20131025/fa0be7fd/attachment.html>

More information about the KDevelop-devel mailing list