www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - ldc2-1.1.0-beta2-win64-msvc link error with std.datetime

reply Miguel L <mlabayru gmail.com> writes:
Hello
I am getting this link error when trying to use LDC2 to compile a 
program that references std.datetime. The same program compiles 
with no errors in DMD:

Using Visual Studio: C:\Program Files (x86)\Microsoft Visual 
Studio 14.0\
main.obj : error LNK2019: unresolved external symbol 
_D3std8datetime4Date15__invariant2044MxFNaNfZv referenced in 
function _Dmain
Error: `C:\windows\system32\cmd.exe /s /c 
"D:\LDC\ldc2-1.1.0-beta2-win64-msvc\bin\amd64.bat link.exe"` 
failed with status: 1120
Exit code 1120
Aug 04 2016
next sibling parent kinke <noone nowhere.com> writes:
On Friday, 5 August 2016 at 06:26:54 UTC, Miguel L wrote:
 Hello
 I am getting this link error when trying to use LDC2 to compile 
 a program that references std.datetime. The same program 
 compiles with no errors in DMD:

 Using Visual Studio: C:\Program Files (x86)\Microsoft Visual 
 Studio 14.0\
 main.obj : error LNK2019: unresolved external symbol 
 _D3std8datetime4Date15__invariant2044MxFNaNfZv referenced in 
 function _Dmain
 Error: `C:\windows\system32\cmd.exe /s /c 
 "D:\LDC\ldc2-1.1.0-beta2-win64-msvc\bin\amd64.bat link.exe"` 
 failed with status: 1120
 Exit code 1120
Could you please give our latest CI build at https://github.com/ldc-developers/ldc/releases/tag/LDC-Win64-master a shot? Just to make sure there's nothing wrong with the beta2 package. If the CI build also fails, please try to come up with a minimal testcase (dustmite?) and either post it here in the forum, or preferrably open a new GitHub issue (https://github.com/ldc-developers/ldc/issues). Thanks!
Aug 05 2016
prev sibling parent reply Chang Long <changlon gmail.com> writes:
On Friday, 5 August 2016 at 06:26:54 UTC, Miguel L wrote:
 Hello
 I am getting this link error when trying to use LDC2 to compile 
 a program that references std.datetime. The same program 
 compiles with no errors in DMD:

 Using Visual Studio: C:\Program Files (x86)\Microsoft Visual 
 Studio 14.0\
 main.obj : error LNK2019: unresolved external symbol 
 _D3std8datetime4Date15__invariant2044MxFNaNfZv referenced in 
 function _Dmain
 Error: `C:\windows\system32\cmd.exe /s /c 
 "D:\LDC\ldc2-1.1.0-beta2-win64-msvc\bin\amd64.bat link.exe"` 
 failed with status: 1120
 Exit code 1120
OSX build with dub --force Undefined symbols for architecture x86_64: "__D3std8datetime4Date15__invariant1671MxFNaNfZv", referenced from: __D3std8datetime4Date26__T16fromISOExtStringTAywZ16fromISOExtStringFNaNfxAyw S3std8datetime4Date in libvibe-d_data.a(vibe.data.json.o) "__D3std8datetime4Date15__invariant1768MxFNaNfZv", referenced from: __D4vibe4inet7message96__T21writeRFC822DateStringTPS4vibe5utils5array32__T13FixedAppenderHTAyaVmi16TyaZ13FixedAppenderZ21writeRFC822DateStringFNaNbKPS4vibe5utils5array32__T13FixedAppenderHTAyaVmi16TyaZ13FixedAppenderS std8datetime4DateZv in libvibe-d_core.a(vibe.inet.message.o) __D4vibe4inet7message96__T21writeRFC822DateStringTPS4vibe5utils5array32__T13FixedAppenderHTAyaVmi31TyaZ13FixedAppenderZ21writeRFC822DateStringFNaNbKPS4vibe5utils5array32__T13FixedAppenderHTAyaVmi31TyaZ13FixedAppenderS std8datetime4DateZv in libvibe-d_core.a(vibe.inet.message.o) "__D3std8datetime4Date15__invariant2360MxFNaNfZv", referenced from: __D4vibe4inet7message90__T21writeRFC822DateStringTS4vibe5utils5array27__T13AllocAppenderHTAyaTyaZ13AllocAppenderZ21writeRFC822DateStringFNbKS4vibe5utils5array27__T13AllocAppenderHTAyaTyaZ13AllocAppenderS std8datetime4DateZv in libvibe-d_http.a(vibe.http.common.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Aug 06 2016
parent reply Kai Nacke <kai redstar.de> writes:
On Saturday, 6 August 2016 at 15:27:20 UTC, Chang Long wrote:
 OSX build with dub --force
Which project? Now we know there is a problem but we don't know how to reproduce. Regards, Kai
Aug 08 2016
parent reply Kai Nacke <kai redstar.de> writes:
On Monday, 8 August 2016 at 20:42:17 UTC, Kai Nacke wrote:
 On Saturday, 6 August 2016 at 15:27:20 UTC, Chang Long wrote:
 OSX build with dub --force
Which project? Now we know there is a problem but we don't know how to reproduce. Regards, Kai
We appreciate every bug report but to actually fix the problem we need to reproduce it...
Aug 08 2016
parent Kai Nacke <kai redstar.de> writes:
On Monday, 8 August 2016 at 20:45:45 UTC, Kai Nacke wrote:
 On Monday, 8 August 2016 at 20:42:17 UTC, Kai Nacke wrote:
 On Saturday, 6 August 2016 at 15:27:20 UTC, Chang Long wrote:
 OSX build with dub --force
Which project? Now we know there is a problem but we don't know how to reproduce. Regards, Kai
We appreciate every bug report but to actually fix the problem we need to reproduce it...
https://github.com/ldc-developers/ldc/issues/1678
Aug 11 2016