[Issue 3564] Rdmd failing to link external C libraries

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 7 19:00:12 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3564


Nick Sabalausky <cbkbbejeap at mailinator.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cbkbbejeap at mailinator.com


--- Comment #1 from Nick Sabalausky <cbkbbejeap at mailinator.com> 2010-09-07 18:59:47 PDT ---
rdmd's parameter format is:
rdmd [RDMD AND DMD OPTIONS]... program [PROGRAM OPTIONS]...

The order is important.

This works fine:

------------------------
$ cat main.d
module main;
import theLib;
void main()
{
    foo();
}

$ cat theLib.d
module theLib;
import std.stdio;
void foo()
{
    writeln("In foo");
}

$ dmd theLib.d -lib
$ mv theLib.d hide-this-file-and-keep-it-out-of-the-way-theLib.d
$ rdmd -LtheLib.a main.d
In foo
------------------------

But be aware of this:
http://d.puremagic.com/issues/show_bug.cgi?id=4814

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list