tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Compilation error while including LAPACKE


From: Domingo Alvarez Duarte
Subject: Re: [Tinycc-devel] Compilation error while including LAPACKE
Date: Sat, 9 Apr 2022 10:01:36 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0

The problem seem to be related with "Complex" rather than "lapacke":

====

#include <stdio.h>
#include <complex.h>

int main() {
  printf("Hello World!\n");
  return 0;
}

====

Output:

====

tcc -c cmath.c
In file included from cmath.c:2:
In file included from /usr/include/complex.h:106:
/usr/include/x86_64-linux-gnu/bits/cmathcalls.h:55: error: ';' expected (got "cacos")

====

Output of preprocessing:

====

/tcc -E cmath.c

...

# 106 "/usr/include/complex.h"
# 1 "/usr/include/x86_64-linux-gnu/bits/cmathcalls.h" 1
# 55 "/usr/include/x86_64-linux-gnu/bits/cmathcalls.h"
extern double _Complex cacos (double _Complex __z) ; extern double _Complex __cacos (double _Complex __z) ;

...

====

On 9/4/22 2:03, Christopher Choi wrote:
#include <lapacke.h>
#include <stdio.h>

int main() {
   printf("Hello World!\n");
   return 0;
}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]