www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - link error

reply "sdv" <sdvcn 126.com> writes:
// a.d
struct demo
{
    char lin1;
    char lin2;
    .
    ..
    ...
    ....
    char lin707;
}

dmd.exe -c "a.d" -of "a.obj" -gc -debug
dmd.exe "a.obj" -gc -debug -L/IMPLIB:a.lib -ofa.dll

It does not work 
Dec 01 2011
parent reply Jesse Phillips <jessekphillips+D gmail.com> writes:
On Fri, 2 Dec 2011 00:58:23 +0800
"sdv" <sdvcn 126.com> wrote:

 // a.d
 struct demo
 {
     char lin1;
     char lin2;
     .
     ..
     ...
     ....
     char lin707;
 }
 
 dmd.exe -c "a.d" -of "a.obj" -gc -debug
 dmd.exe "a.obj" -gc -debug -L/IMPLIB:a.lib -ofa.dll
 
 It does not work 
 
 
You should provide the error. Also your command doesn't resemble the example on http://www.d-programming-language.org/dll.html C:>dmd -ofmydll.dll -L/IMPLIB mydll.d dll.d mydll.def
Dec 01 2011
parent "sdv" <sdvcn 126.com> writes:
line <700 is ok work.
line > 707 It does not work.

"Jesse Phillips" <jessekphillips+D gmail.com> ???? 
news:20111201111632.000066c8 unknown...
 On Fri, 2 Dec 2011 00:58:23 +0800
 "sdv" <sdvcn 126.com> wrote:

 // a.d
 struct demo
 {
     char lin1;
     char lin2;
     .
     ..
     ...
     ....
     char lin707;
 }

 dmd.exe -c "a.d" -of "a.obj" -gc -debug
 dmd.exe "a.obj" -gc -debug -L/IMPLIB:a.lib -ofa.dll

 It does not work
You should provide the error. Also your command doesn't resemble the example on http://www.d-programming-language.org/dll.html C:>dmd -ofmydll.dll -L/IMPLIB mydll.d dll.d mydll.def
Dec 02 2011