Thread overview | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
March 24, 2015 [Issue 14327] Unhandled exception from writeln() in C++/D application | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14327 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |C++ CC| |yebblies@gmail.com -- |
March 30, 2015 [Issue 14327] Unhandled exception from writeln() in C++/D application | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14327 Vladimir Panteleev <thecybershadow@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thecybershadow@gmail.com --- Comment #1 from Vladimir Panteleev <thecybershadow@gmail.com> --- Why are there two main functions? -- |
March 30, 2015 [Issue 14327] Unhandled exception from writeln() in C++/D application | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14327 --- Comment #2 from Vladimir Panteleev <thecybershadow@gmail.com> --- I can't even get this application to link... keep getting minfo_beg/minfo_end errors (with both -m64 and -m32mscoff). -- |
March 30, 2015 [Issue 14327] Unhandled exception from writeln() in C++/D application | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14327 --- Comment #3 from Szymon Gatner <szymon.gatner@gmail.com> --- (In reply to Vladimir Panteleev from comment #1) > Why are there two main functions? Without main() in D library link errors occur -- |
March 30, 2015 [Issue 14327] Unhandled exception from writeln() in C++/D application | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14327 --- Comment #4 from Szymon Gatner <szymon.gatner@gmail.com> --- (In reply to Vladimir Panteleev from comment #2) > I can't even get this application to link... keep getting minfo_beg/minfo_end errors (with both -m64 and -m32mscoff). m32mscoff won't work as there is no coff32 phobos. What link errors are you getting? -- |
March 30, 2015 [Issue 14327] Unhandled exception from writeln() in C++/D application | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14327 --- Comment #5 from Vladimir Panteleev <thecybershadow@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 -- |
March 31, 2015 [Issue 14327] Unhandled exception from writeln() in C++/D application | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14327 Sobirari Muhomori <dfj1esp02@sneakemail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://issues.dlang.org/sh | |ow_bug.cgi?id=14318 -- |
March 31, 2015 [Issue 14327] Unhandled exception from writeln() in C++/D application | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14327 --- Comment #6 from Szymon Gatner <szymon.gatner@gmail.com> --- (In reply to Vladimir Panteleev from comment #5) > (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_posix9Fun > cTable > test.exe : fatal error LNK1120: 4 unresolved externals > --------------------------------------------- > > > Please supply exact commands to reproduce the problem, I guess Doing everything in IDE. Will try to get to build logs and commands used -- |
April 03, 2015 [Issue 14327] Unhandled exception from writeln() in C++/D application | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14327 --- Comment #7 from Szymon Gatner <szymon.gatner@gmail.com> --- Build started 2015-04-03 22:49:35. 1>Project "C:\Users\bravo\documents\visual studio 2012\Projects\CppDMix\CppDMix\CppDMix.vcxproj" on node 2 (Build target(s)). 1>ClCompile: C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\x86_amd64\CL.exe /c /Zi /nologo /W3 /WX- /Od /D WIN32 /D _DEBUG /D _CONSOLE /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"x64\Debug\\" /Fd"x64\Debug\vc110.pdb" /Gd /TP /errorReport:prompt main.cpp main.cpp Link: C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:PROMPT /OUT:"C:\Users\bravo\documents\visual studio 2012\Projects\CppDMix\x64\Debug\CppDMix.exe" /INCREMENTAL /NOLOGO /LIBPATH:D:\devel\D\dmd2\windows\lib64 /LIBPATH:"C:\Users\bravo\Documents\visual studio 2012\Projects\CppDMix\dlib\Debug" phobos64.lib dlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:\Users\bravo\documents\visual studio 2012\Projects\CppDMix\x64\Debug\CppDMix.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\bravo\documents\visual studio 2012\Projects\CppDMix\x64\Debug\CppDMix.lib" /MACHINE:X64 x64\Debug\main.obj CppDMix.vcxproj -> C:\Users\bravo\documents\visual studio 2012\Projects\CppDMix\x64\Debug\CppDMix.exe 1>Done Building Project "C:\Users\bravo\documents\visual studio 2012\Projects\CppDMix\CppDMix\CppDMix.vcxproj" (Build target(s)). Build succeeded. Time Elapsed 00:00:00.32 -- |
April 04, 2015 [Issue 14327] Unhandled exception from writeln() in C++/D application | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14327 --- Comment #8 from Vladimir Panteleev <thecybershadow@gmail.com> --- I'm still seeing the same errors. How are you compiling dlib.lib? -- |
Copyright © 1999-2021 by the D Language Foundation