On Tue, Feb 5, 2013 at 10:54 AM, Carson wrote:
> On Tue, 05 Feb 2013 10:34:16 -0500, Earnie Boyd wrote:
>> On Tue, Feb 5, 2013 at 9:38 AM, Carson wrote:
>>> I would like to compile a program using the CRT function rand_s.
>>> This function is described here:
>>> I installed mingw on Windows 7.
>>> The linker fails with an undefined reference to rand_s.
>>> This has been discussed before on this mailing list:
>>> Am I missing linker switches, or is there a workaround to be able to
>>> call it ?
>> This is a known issue for which I hope to resolve sometime this year.
> Thanks for your reply.
> So, is there anything I can do in the meantime except doing without rand_s
> () ?
You can declare the function yourself and then link directly with the
DLL containing the function instead of the import library.