Can we use "ImportC" used yet?

data pulverizer data.pulverizer at gmail.com
Sun Oct 17 02:45:03 UTC 2021


On Saturday, 16 October 2021 at 08:19:41 UTC, rempas wrote:
> On Saturday, 16 October 2021 at 07:09:16 UTC, jfondren wrote:
> If I understand correctly you mean compile the original file 
> with gcc (`gcc test_og.c -o test_og.o`) and then link it with 
> DMD (`dmd test.d test_og.o`)? ...

While we're on this subject, I've been having similar issues now 
tried compiling @rempas's example file with:

```
gcc test_og.c -c -o test_og.o
dmd test.d test_og.o
```

and get the response:

```
test_og.c(1): Error: identifier or `(` expected
test_og.c(6): Error: identifier or `(` expected
```

Platform is Ubuntu 20.04 gcc version 9.30 and dmd version 
v2.098.0. At first I tried compiling a script with fftw3 and 
thought it was something wrong with my script but when I tried it 
with your example, the same thing happened.



More information about the Digitalmars-d-learn mailing list