www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Cannot find std.datetime when linking after upgrade to 2.075.0

reply Domain <dont_email empty.com> writes:
After upgrade dmd to latest 2.075.0, my project no longer build:

zero.lib(core_cde_4a4f.obj) : error LNK2001: unresolved external 
symbol _D3std8d
atetime9LocalTime6opCallFNaNbNeZyC3std8datetime9LocalTime

and many more. All about std.datetime.
Jul 21
next sibling parent zabruk70 <sorry noem.ail> writes:
https://dlang.org/changelog/2.075.0.html#split-std-datetime
Jul 21
prev sibling parent reply Jonathan M Davis via Digitalmars-d-learn writes:
On Friday, July 21, 2017 15:33:45 Domain via Digitalmars-d-learn wrote:
 After upgrade dmd to latest 2.075.0, my project no longer build:

 zero.lib(core_cde_4a4f.obj) : error LNK2001: unresolved external
 symbol _D3std8d
 atetime9LocalTime6opCallFNaNbNeZyC3std8datetime9LocalTime

 and many more. All about std.datetime.
Then it sounds like you need to make sure that you rebuild your project and all of its dependencies (which you should be doing with any compiler upgrade anyway, since they're not ABI compatible). Your code should work just fine with std.datetime and 2.075.0 without any changes, but it will need to be recompiled. https://dlang.org/changelog/2.075.0.html#split-std-datetime - Jonathan M Davis
Jul 21
next sibling parent Domain <do main.com> writes:
On Friday, 21 July 2017 at 19:05:00 UTC, Jonathan M Davis wrote:
 On Friday, July 21, 2017 15:33:45 Domain via 
 Digitalmars-d-learn wrote:
 After upgrade dmd to latest 2.075.0, my project no longer 
 build:

 zero.lib(core_cde_4a4f.obj) : error LNK2001: unresolved 
 external symbol _D3std8d 
 atetime9LocalTime6opCallFNaNbNeZyC3std8datetime9LocalTime

 and many more. All about std.datetime.
Then it sounds like you need to make sure that you rebuild your project and all of its dependencies (which you should be doing with any compiler upgrade anyway, since they're not ABI compatible). Your code should work just fine with std.datetime and 2.075.0 without any changes, but it will need to be recompiled. https://dlang.org/changelog/2.075.0.html#split-std-datetime - Jonathan M Davis
I have tried dub build --force and rebuild solution in VisualD, but nothing changed. Maybe I have to remove the lib manually.
Jul 21
prev sibling next sibling parent Domain <dont_email empty.com> writes:
On Friday, 21 July 2017 at 19:05:00 UTC, Jonathan M Davis wrote:
 On Friday, July 21, 2017 15:33:45 Domain via 
 Digitalmars-d-learn wrote:
 After upgrade dmd to latest 2.075.0, my project no longer 
 build:

 zero.lib(core_cde_4a4f.obj) : error LNK2001: unresolved 
 external symbol _D3std8d 
 atetime9LocalTime6opCallFNaNbNeZyC3std8datetime9LocalTime

 and many more. All about std.datetime.
Then it sounds like you need to make sure that you rebuild your project and all of its dependencies (which you should be doing with any compiler upgrade anyway, since they're not ABI compatible). Your code should work just fine with std.datetime and 2.075.0 without any changes, but it will need to be recompiled. https://dlang.org/changelog/2.075.0.html#split-std-datetime - Jonathan M Davis
I have deleted all dependencies and rebuild everything, but still get those errors! C:\Domain\d\game>dub build zero:plugin1 --arch=x86_64 --force Building package zero:plugin1 in C:\Domain\d\game\ Fetching pegged 0.4.2 (getting selected version)... Fetching msgpack-d 1.0.0-beta.6 (getting selected version)... WARNING: A deprecated branch based version specification is used for the depende ncy zero. Please use numbered versions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a branch i nstead. Performing "debug" build using dmd for x86_64. msgpack-d 1.0.0-beta.6: building configuration "library"... pegged 0.4.2: building configuration "default"... zero ~master: building configuration "library"... zero:plugin1 ~master: building configuration "library"... Linking... src\plugins\plugin1\dll.def(4) : warning LNK4017: EXETYPE statement not supporte d for the target platform; ignored Creating library .dub\build\library-debug-windows-x86_64-dmd_2075-1F996E49B53 F3A00022177DB92F8CC26\PlugIn1.lib and object .dub\build\library-debug-windows-x8 6_64-dmd_2075-1F996E49B53F3A00022177DB92F8CC26\PlugIn1.exp PlugIn1.obj : error LNK2001: unresolved external symbol _D3std8datetime7SysTime8 toStringMxFNbNfZAya PlugIn1.obj : error LNK2001: unresolved external symbol _D3std8datetime7SysTime8 __xopCmpFKxS3std8datetime7SysTimeKxS3std8datetime7SysTimeZi PlugIn1.obj : error LNK2001: unresolved external symbol _D3std8datetime7SysTime8 opEqualsMxFNaNbNfKxS3std8datetime7SysTimeZb zero.lib(formattedLogger_aa3_d61.obj) : error LNK2001: unresolved external symbo l _D3std8datetime7SysTime8opEqualsMxFNaNbNfKxS3std8datetime7SysTimeZb PlugIn1.obj : error LNK2001: unresolved external symbol _D3std8datetime7SysTime6 toHashMxFNaNbNiNfZm zero.lib(formattedFileLogger_aa2_786.obj) : error LNK2001: unresolved external s ymbol _D3std12experimental6logger4core6Logger11beginLogMsgMFNfAyaiAyaAyaAyaE3std 12experimental6logger4core8LogLevelS3std11concurrency3TidS3std8datetime7SysTimeC 3std12experimental6logger4core6LoggerZv zero.lib(formattedLogger_aa3_d61.obj) : error LNK2001: unresolved external symbo l _D3std12experimental6logger4core6Logger11beginLogMsgMFNfAyaiAyaAyaAyaE3std12ex perimental6logger4core8LogLevelS3std11concurrency3TidS3std8datetime7SysTimeC3std 12experimental6logger4core6LoggerZv zero.lib(formattedLogger_aa3_d61.obj) : error LNK2019: unresolved external symbo l _D3std8datetime7SysTime8fracSecsMxFNbNdNfZS4core4time8Duration referenced in f unction _D4zero6logger15formattedLogger57__T15FormattedLoggerTS3std5stdio4File17 LockingTextWriterZ15FormattedLogger12LogFormatter8toStringMFMDFAxaZvS3std6format 18__T10FormatSpecTaZ10FormatSpecZv zero.lib(formattedLogger_aa3_d61.obj) : error LNK2019: unresolved external symbo l _D3std8datetime7SysTime14toISOExtStringMxFNbNfZAya referenced in function _D4z ero6logger15formattedLogger57__T15FormattedLoggerTS3std5stdio4File17LockingTextW riterZ15FormattedLogger12LogFormatter8toStringMFMDFAxaZvS3std6format18__T10Forma tSpecTaZ10FormatSpecZv .dub\build\library-debug-windows-x86_64-dmd_2075-1F996E49B53F3A00022177DB92F8CC2 6\PlugIn1.dll : fatal error LNK1120: 7 unresolved externals Error: linker exited with status 1120 dmd failed with exit code 1120.
Jul 22
prev sibling parent reply Domain <dont_email empty.com> writes:
On Friday, 21 July 2017 at 19:05:00 UTC, Jonathan M Davis wrote:
 On Friday, July 21, 2017 15:33:45 Domain via 
 Digitalmars-d-learn wrote:
 After upgrade dmd to latest 2.075.0, my project no longer 
 build:

 zero.lib(core_cde_4a4f.obj) : error LNK2001: unresolved 
 external symbol _D3std8d 
 atetime9LocalTime6opCallFNaNbNeZyC3std8datetime9LocalTime

 and many more. All about std.datetime.
Then it sounds like you need to make sure that you rebuild your project and all of its dependencies (which you should be doing with any compiler upgrade anyway, since they're not ABI compatible). Your code should work just fine with std.datetime and 2.075.0 without any changes, but it will need to be recompiled. https://dlang.org/changelog/2.075.0.html#split-std-datetime - Jonathan M Davis
Never mind. It looks like the installation files are corrupted. I remove the entire dmd, download and install again, everything work fine now.
Jul 22
parent Jonathan M Davis via Digitalmars-d-learn writes:
On Saturday, July 22, 2017 15:29:26 Domain via Digitalmars-d-learn wrote:
 On Friday, 21 July 2017 at 19:05:00 UTC, Jonathan M Davis wrote:
 On Friday, July 21, 2017 15:33:45 Domain via

 Digitalmars-d-learn wrote:
 After upgrade dmd to latest 2.075.0, my project no longer
 build:

 zero.lib(core_cde_4a4f.obj) : error LNK2001: unresolved
 external symbol _D3std8d
 atetime9LocalTime6opCallFNaNbNeZyC3std8datetime9LocalTime

 and many more. All about std.datetime.
Then it sounds like you need to make sure that you rebuild your project and all of its dependencies (which you should be doing with any compiler upgrade anyway, since they're not ABI compatible). Your code should work just fine with std.datetime and 2.075.0 without any changes, but it will need to be recompiled. https://dlang.org/changelog/2.075.0.html#split-std-datetime - Jonathan M Davis
Never mind. It looks like the installation files are corrupted. I remove the entire dmd, download and install again, everything work fine now.
Well, at least you finally figured it out and got it working. - Jonathan M Davis
Jul 22