www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - need help with simple importC

reply Dakota <dakota gmail.com> writes:
I am use importC from linux, get this error:


```sh
/usr/include/x86_64-linux-gnu/bits/floatn-common.h(214): Error: 
illegal combination of type specifiers
/usr/include/x86_64-linux-gnu/bits/floatn-common.h(251): Error: 
illegal combination of type specifiers
/usr/include/x86_64-linux-gnu/bits/floatn-common.h(268): Error: 
illegal combination of type specifiers
/usr/include/x86_64-linux-gnu/bits/floatn-common.h(285): Error: 
illegal combination of type specifiers
/usr/include/x86_64-linux-gnu/bits/floatn-common.h(285): Error: 
illegal type combination
```


from `floatn-common.h`
```c

!__GNUC_PREREQ (13, 0))
typedef float _Float32;








```

any tips to work this around ?
Feb 25
parent Dakota <dakota gmail.com> writes:
On Monday, 26 February 2024 at 07:44:02 UTC, Dakota wrote:
 I am use importC from linux, get this error:


 ```sh
 /usr/include/x86_64-linux-gnu/bits/floatn-common.h(214): Error: 
 illegal combination of type specifiers
 /usr/include/x86_64-linux-gnu/bits/floatn-common.h(251): Error: 
 illegal combination of type specifiers
 /usr/include/x86_64-linux-gnu/bits/floatn-common.h(268): Error: 
 illegal combination of type specifiers
 /usr/include/x86_64-linux-gnu/bits/floatn-common.h(285): Error: 
 illegal combination of type specifiers
 /usr/include/x86_64-linux-gnu/bits/floatn-common.h(285): Error: 
 illegal type combination
 ```

 [...]
I use ldmd2 1.37.0-beta1 trigger this error. change to dmd v2.107.1-rc.1 fix the problem.
Feb 26