Add ImportC compiler to dmd
12345swordy
alexanderheistermann at gmail.com
Tue May 11 18:51:02 UTC 2021
On Tuesday, 11 May 2021 at 18:46:26 UTC, IGotD- wrote:
> On Tuesday, 11 May 2021 at 18:37:22 UTC, 12345swordy wrote:
>>
>> Read the change log, there are no plans for importing C++
>> files. C (without the preprocessor nonsense) is a very simple
>> programming language. There are huge number of C libraries out
>> there. The ability to simply import them and "Just work" will
>> be a huge boost to adoption rate when it comes the d language.
>>
>> -Alex
>
> Without the preprocessor many header files will not work. C is
> general littered with #ifdef. Commonplace is the #ifdef
> __cplusplus and without the preprocessor the C++ will collide
> with the C part.
>
> The importC that will "just work", will not be the reality.
> It's not worth it in my opinion.
That why in the changelog (Which you didn't read apparently)
suggest that you use the gcc '-e' option in your build set up,
before you compile it with dmd.
-Alex
More information about the Digitalmars-d
mailing list