digitalmars.D.bugs - [Issue 4645] New: to!string(const char*) in library causes Optlink to issue warning
- d-bugmail puremagic.com (52/52) Aug 15 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4645
- d-bugmail puremagic.com (10/10) Sep 01 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4645
- d-bugmail puremagic.com (11/11) Sep 01 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4645
http://d.puremagic.com/issues/show_bug.cgi?id=4645
Summary: to!string(const char*) in library causes Optlink to
issue warning
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Optlink
AssignedTo: nobody puremagic.com
ReportedBy: aldacron gmail.com
Given the following module:
------------------
module tos;
import std.string : to;
import std.stdio : writeln;
void dotos()
{
const char* str = "Foo";
writeln(to!string(str));
}
------------------
Compile with:
dmd -lib tos.d
Then take this module:
------------------
module tosmain;
import tos;
void main()
{
dotos();
}
------------------
And compile with:
dmd tos.lib tosmain.d
The output is the following:
OPTLINK (R) for Win32 Release 8.00.2
Copyright (C) Digital Mars 1989-2009 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
tos.lib
Warning 140: Library probably needs FIXLIB
However, in my Derelict libraries, I have a utility function that wraps
to!string to convert from a C string to a D string, but this warning is not
given when linking with that lib. I've been unable to reproduce it in a small
test case for comparison, as I keep getting this warning no matter what I do.
Regardless, the output of the program is unaffected.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 15 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4645
Walter Bright <bugzilla digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla digitalmars.com
19:23:03 PDT ---
2378 has a small test case for it.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 01 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4645
Walter Bright <bugzilla digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
20:39:27 PDT ---
Fixed linker 8.00.7
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 01 2010









d-bugmail puremagic.com 