Cannot compile betterC app in windows using stderr

Abby abby at gmail.com
Wed Feb 2 06:20:39 UTC 2022


On Wednesday, 2 February 2022 at 03:34:29 UTC, forkit wrote:
> On Wednesday, 2 February 2022 at 01:24:30 UTC, Abby wrote:
>>
>
>
> a link error with the 64bit version of dmd ??
>
> try: -m32

Hi did not help

```
dub build --arch=x86_64

## Warning for package test ##

The following compiler flags have been specified in the package 
description
file. They are handled by DUB and direct use in packages is 
discouraged.
Alternatively, you can set the DFLAGS environment variable to 
pass custom flags
to the compiler, or use one of the suggestions below:

-m32: Use --arch=x86/--arch=x86_64/--arch=x86_mscoff to specify 
the target architecture, e.g. 'dub build --arch=x86_64'

Performing "debug" build using C:\D\dmd2\windows\bin64\dmd.exe 
for x86_64.
test ~master: building configuration "application"...
Linking...
test.obj : error LNK2019: unresolved external symbol stderr 
referenced in function main
.dub\build\application-debug-windows-x86_64-dmd_v2.098.1-dirty-ED981EB8716B85E9E2580186FAF4E89B\test.exe : fatal error LNK1120: 1 unresolved externals
Error: linker exited with status 1120
C:\D\dmd2\windows\bin64\dmd.exe failed with exit code 1.
```


More information about the Digitalmars-d mailing list