On Monday, 15 October 2012 at 21:40:01 UTC, Walter Bright wrote:
On 10/15/2012 2:21 PM, Michael wrote:> On Monday, 15 October 2012 at 20:39:14 UTC, Walter Bright wrote:
>> On 10/15/2012 1:27 PM, Michael wrote:
>>> LINK : fatal error LNK1104: cannot open file 'phobos64.lib'
>>> --- errorlevel 1104
>>
>> Fixed.
>
> dmd -m64 t64.d
>
> --
> import std.stdio;
>
> void main()
> {
>          writeln("Win 64!");
> }
> --

You should be linking with the VC libraries, not the 32 bit dmc ones. Try disabling the LIB path in sc.ini.

>
> .\..\lib\shell32.lib : warning LNK4003: invalid library
format; library ignored
> .\..\lib\kernel32.lib : warning LNK4003: invalid library
format; library ignored
> .\..\lib\shell32.lib : warning LNK4003: invalid library
format; library ignored
> .\..\lib\kernel32.lib : warning LNK4003: invalid library
format; library ignored
> LIBCMT.lib(a_map.obj) : error LNK2019: unresolved external
symbol
> __imp_WideCharToMultiByte referenced in function "int __cdecl
> __crtLCMapStringA_stat(struct localeinfo_struct *,wchar_t
const *,unsigned
> long,char const *,int,char *,int,int,int)"
> (?__crtLCMapStringA_stat@@YAHPEAUlocaleinfo_struct@@PEB_WKPEBDHPEADHHH@Z)
> LIBCMT.lib(a_loc.obj) : error LNK2001: unresolved external
symbol
> __imp_WideCharToMultiByte
> phobos64.lib(dmain2_4a7_1a5.obj) : error LNK2001: unresolved
external symbol
> __imp_WideCharToMultiByte
> LIBCMT.lib(a_env.obj) : error LNK2001: unresolved external
symbol
> __imp_WideCharToMultiByte
> LIBCMT.lib(wctomb.obj) : error LNK2001: unresolved external
symbol
> __imp_WideCharToMultiByte
> LIBCMT.lib(write.obj) : error LNK2001: unresolved external
symbol
> __imp_WideCharToMultiByte
> phobos64.lib(dmain2_4a7_1a5.obj) : error LNK2019: unresolved
external symbol
> IsDebuggerPresent referenced in function main
> phobos64.lib(dmain2_4a7_1a5.obj) : error LNK2019: unresolved
external symbol
> LocalFree referenced in function main
> phobos64.lib(dmain2_4a7_1a5.obj) : error LNK2019: unresolved
external symbol
> GetCommandLineW referenced in function main
> phobos64.lib(dmain2_4a7_1a5.obj) : error LNK2019: unresolved
external symbol
> CommandLineToArgvW referenced in function main
> phobos64.lib(thread_1b9_21c.obj) : error LNK2001: unresolved
external symbol
> __imp_InitializeCriticalSection
> phobos64.lib(mutex_335_213.obj) : error LNK2001: unresolved
external symbol
> __imp_InitializeCriticalSection
> phobos64.lib(monitor__519_6fd.obj) : error LNK2019:
unresolved external symbol
> __imp_InitializeCriticalSection referenced in function
_d_monitor_create
>
>
> and ... ... ...
>
>

It worked fine for me at first! This is awesome!
But is it possible to use VC linker for 32-bit architectures?

Reply via email to