Re: Error when compiling with C libs

2024-10-15 Thread barbosso via Digitalmars-d-learn
On Sunday, 13 October 2024 at 21:28:41 UTC, Sergey wrote: On Sunday, 13 October 2024 at 20:06:44 UTC, barbosso wrote: error in line ```typedef float _Float32;``` clang can compile that line, but dmd or ldc can not! This is definatly compiler error! It is not an error.. This is just lack in the

Re: Error when compiling with C libs

2024-10-15 Thread barbosso via Digitalmars-d-learn
On Sunday, 13 October 2024 at 21:28:41 UTC, Sergey wrote: On Sunday, 13 October 2024 at 20:06:44 UTC, barbosso wrote: error in line ```typedef float _Float32;``` clang can compile that line, but dmd or ldc can not! This is definatly compiler error! It is not an error.. This is just lack in the

Re: Error when compiling with C libs

2024-10-13 Thread Sergey via Digitalmars-d-learn
On Sunday, 13 October 2024 at 20:06:44 UTC, barbosso wrote: error in line ```typedef float _Float32;``` clang can compile that line, but dmd or ldc can not! This is definatly compiler error! It is not an error.. This is just lack in the implementation. https://github.com/dlang/dmd/blob/f5fa64a

Re: Error when compiling with C libs

2024-10-13 Thread barbosso via Digitalmars-d-learn
On Sunday, 13 October 2024 at 13:49:49 UTC, barbosso wrote: I can compile tilengine examples with clang, but with ldc I get this error. Please explain the problem. ldc -betterC -gcc=clang -release -O3 -L-s -flto=full -Xcc=-I./Tilengine/include -L-L./Tilengine/build -L-l:libTilengine.a -L-lSDL

Re: Error when compiling with C libs

2024-10-13 Thread barbosso via Digitalmars-d-learn
On Sunday, 13 October 2024 at 14:55:51 UTC, Sergey wrote: On Sunday, 13 October 2024 at 13:49:49 UTC, barbosso wrote: I can compile tilengine examples with clang, but with ldc I get this error. Did you try this bindings? https://github.com/thechampagne/dtilengine I want betterC without bind

Re: Error when compiling with C libs

2024-10-13 Thread Sergey via Digitalmars-d-learn
On Sunday, 13 October 2024 at 13:49:49 UTC, barbosso wrote: I can compile tilengine examples with clang, but with ldc I get this error. Did you try this bindings? https://github.com/thechampagne/dtilengine