Visual D 0.3.43 beta1 available

Rainer Schuetze via Digitalmars-d-ide digitalmars-d-ide at puremagic.com
Thu Nov 5 12:27:34 PST 2015



On 05.11.2015 12:11, johann wrote:
> On Thursday, 5 November 2015 at 11:07:04 UTC, johann wrote:
>> On Wednesday, 4 November 2015 at 18:33:49 UTC, Rainer Schuetze wrote:
>>>
>>>
>>> On 04.11.2015 10:32, tester wrote:
>>>> [...]
>>>
>>> It seems it fails to add legacy_stdio_definitions.lib to the link
>>> command line. You could try to add it to the "additional linker
>>> options" in the globl settings as a workaround.
>>
>> could you import that automatically?
>> i just made an console program with nothing in it - except the main.d
>> with the content:
>>
>> import std.stdio;
>>
>> int main(string[] argv)
>> {
>>     writeln("Hello D-World!");
>>     return 0;
>> }
>
> now getting another error:
> LIBCMT.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol
> WinMain referenced in function "int __cdecl
> __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@YAHXZ)

I guess you have changed the subsystem to "Windows". main doesn't seem 
to work then (only for "Console"), you'll have to implement WinMain as 
in the WindowsApplication template.


More information about the Digitalmars-d-ide mailing list