On Wednesday, 18 January 2023 at 02:05:34 UTC, zjh wrote:
< ...
nightly
:
Unresolved external symbol __va_start
, function _fwprintf_
.
link error.
January 18, 2023 Re: Problem with ImportC example? | ||||
---|---|---|---|---|
| ||||
Posted in reply to zjh | On Wednesday, 18 January 2023 at 02:05:34 UTC, zjh wrote:
|
January 18, 2023 Re: Problem with ImportC example? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ali Çehreli | On Tuesday, 17 January 2023 at 22:11:46 UTC, Ali Çehreli wrote: dmd relies on system compiler programs for its ImportC feature. cl.exe seems to be the compiler. I think it is the compiler. Can you run that program from the command line? Fails with:
|
January 18, 2023 Re: Problem with ImportC example? | ||||
---|---|---|---|---|
| ||||
Posted in reply to DLearner | On Wednesday, 18 January 2023 at 13:45:04 UTC, DLearner wrote: >On Tuesday, 17 January 2023 at 22:11:46 UTC, Ali Çehreli wrote: dmd relies on system compiler programs for its ImportC feature. cl.exe seems to be the compiler. I think it is the compiler. Can you run that program from the command line? Fails with:
You will run the cl.exe, not the c1.exe SDB@79 |
January 18, 2023 Re: Problem with ImportC example? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Salih Dincer | On Wednesday, 18 January 2023 at 14:18:58 UTC, Salih Dincer wrote: >On Wednesday, 18 January 2023 at 13:45:04 UTC, DLearner wrote: >On Tuesday, 17 January 2023 at 22:11:46 UTC, Ali Çehreli wrote: dmd relies on system compiler programs for its ImportC feature. cl.exe seems to be the compiler. I think it is the compiler. Can you run that program from the command line? Fails with:
You will run the cl.exe, not the c1.exe SDB@79 Unfortunately, neither works:
|
January 18, 2023 Re: Problem with ImportC example? | ||||
---|---|---|---|---|
| ||||
Posted in reply to DLearner | On 1/18/23 08:04, DLearner wrote: > Unfortunately, neither works: > ``` > C:\Users\SoftDev>cl.exe > 'cl.exe' is not recognized as an internal or external command, > operable program or batch file. That supports the theory that you don't have a C compiler installed that dmd can use for preprocessing C files. Ali |
January 18, 2023 Re: Problem with ImportC example? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ali Çehreli | On Wednesday, 18 January 2023 at 16:37:17 UTC, Ali Çehreli wrote: >On 1/18/23 08:04, DLearner wrote: >Unfortunately, neither works:
That supports the theory that you don't have a C compiler installed that dmd can use for preprocessing C files. Ali The documentation says >When compiling for Windows with the -m32mscoff or the -m64 switch, cl.exe /P /Zc:preprocessor will be used as the preprocessor. It might be useful for someone to add more information. I would certainly have no idea what that means if I tried to use Windows. |
January 18, 2023 Re: Problem with ImportC example? | ||||
---|---|---|---|---|
| ||||
Posted in reply to bachmeier | On Wednesday, 18 January 2023 at 16:51:27 UTC, bachmeier wrote: >On Wednesday, 18 January 2023 at 16:37:17 UTC, Ali Çehreli wrote: >On 1/18/23 08:04, DLearner wrote: >Unfortunately, neither works:
That supports the theory that you don't have a C compiler installed that dmd can use for preprocessing C files. Ali The documentation says >When compiling for Windows with the -m32mscoff or the -m64 switch, cl.exe /P /Zc:preprocessor will be used as the preprocessor. It might be useful for someone to add more information. I would certainly have no idea what that means if I tried to use Windows. Or perhaps stated better, I'd have no idea what I'm supposed to install or set up to get it to work. |