[Issue 14327] Unhandled exception from writeln() in C++/D application

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Mar 30 15:09:59 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14327

--- Comment #5 from Vladimir Panteleev <thecybershadow at gmail.com> ---
(In reply to Szymon Gatner from comment #4)
> m32mscoff won't work as there is no coff32 phobos.

Build my own.

> What link errors are you getting?

---------------------------------------------
C:\Temp\D\issues\14327>
"C:\Downloads\!dmd\dmd.2.066.0\dmd2\windows\bin\dmd.exe" -c -m64 lib.d

C:\Temp\D\issues\14327> cl test.cpp lib.obj
"C:\Downloads\!dmd\dmd.2.066.0\dmd2\windows\lib64\phobos64.lib"
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.30723 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

test.cpp
Microsoft (R) Incremental Linker Version 12.00.30723.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:test.exe
test.obj
lib.obj
C:\Downloads\!dmd\dmd.2.066.0\dmd2\windows\lib64\phobos64.lib
phobos64.lib(dmain2_4ec_2f9.obj) : error LNK2019: unresolved external symbol
_deh_beg referenced in function rt_init
phobos64.lib(sections_win64_575_4e2.obj) : error LNK2001: unresolved external
symbol _deh_beg
phobos64.lib(sections_win64_57b_5a5.obj) : error LNK2019: unresolved external
symbol _minfo_end referenced in function
_D2rt14sections_win6414getModuleInfosFZAyPS6object10ModuleInfo
phobos64.lib(sections_win64_57b_5a5.obj) : error LNK2019: unresolved external
symbol _minfo_beg referenced in function
_D2rt14sections_win6414getModuleInfosFZAyPS6object10ModuleInfo
phobos64.lib(sections_win64_575_4e2.obj) : error LNK2019: unresolved external
symbol _deh_end referenced in function
_D2rt14sections_win6412SectionGroup8ehTablesMxFNdZAyS2rt15deh_win64_posix9FuncTable
test.exe : fatal error LNK1120: 4 unresolved externals
---------------------------------------------


Please supply exact commands to reproduce the problem, I guess

--


More information about the Digitalmars-d-bugs mailing list