[m-rev.] for review: unicode command line arguments on windows

Julien Fischer juliensf at csse.unimelb.edu.au
Thu Dec 15 16:07:34 AEDT 2011


On Thu, 15 Dec 2011, Peter Wang wrote:

> On Thu, 15 Dec 2011 14:02:44 +1100, Peter Wang <novalazy at gmail.com> wrote:
>> On Thu, 15 Dec 2011 12:53:34 +1100 (EST), Julien Fischer <juliensf at csse.unimelb.edu.au> wrote:
>>>
>>> argv[0] behaves oddly in if the name of the program is directory
>>> qualified and some of the directory components are quoted.
>>
>> Ugh.  I'll try __wgetmainargs instead.
>
> Can you test this on MSVC?

Ok, for any executable that is not the compiler, e.g mslice.exe,
mercury_profile.exe, we get the following error:

error LNK2019: unresolved external symbol __wgetmainargs referenced in
function _mercury_win32_args

Is __wgetmainargs included in the static version of the library on
Windows, i.e. in libcmt.lib?  Or is only part of the dynamic library?
(MSDN is its unsual unhelpful self on this issue.)

I will try reconfuring with --with-msvcrt enabled and see if that helps.
In the meantime, This is all rather curious, because mercury_compile.exe
does build (and indeed runs).  Any idea what we might be doing
differently in the compiler directory?

Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list