KDevelop, Semantic analysis, Makefile, & math.h

Milian Wolff mail at milianw.de
Fri Oct 25 13:37:09 UTC 2013


On Friday 25 October 2013 14:51:44 Philipp A. wrote:
> 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”.
> 
> Makefile:
> 
> CC=clang
> CFLAGS=--std=c11 -Wall -pedantic
> LDFLAGS=-lgsl -lgslcblas -lm
> 
> debug:
>     $(CC) $(CFLAGS) -g -o c-pcor main.c $(LDFLAGS)
> clean:
>     rm -vfr *~ c-pcor
> 
> main.h (excerpt):
> 
> #include <stdio.h>#include <stdlib.h>#include <math.h>#include <stdbool.h>
> #include <gsl/gsl_matrix.h>

Please report bugs on bugs.kde.org and attach the files to reproduce the issue 
there.

Bye
-- 
Milian Wolff
mail at milianw.de
http://milianw.de


More information about the KDevelop-devel mailing list