View mode: basic / threaded / horizontal-split · Log in · Help
May 14, 2003
Re: DMD 0.65 release - dmd-session
Apart from the

   > bad relocation section name `.rel.gnu.linkonce.t_d_new?'

which I luckily don't have on my Debian, the dhry.d
sample needs minor fixing:

add (at the beginning):

   import time;

and replace (at the end):

q = (double)GetTickCount() * 1.0e-03;

   with

q = (double)clock() * 1.0e-03;


Cheers,
Sz.


"Georg Wrede" <Georg_member@pathlink.com> wrote in message
news:b9t0it$jv9$1@digitaldaemon.com...
> Cannot compile dhry.
>
> [georg@abit d]$ dmd -I/home/georg/dmd/src/phobos dhry
> gcc dhry.o -o dhry -lphobos -lpthread -lm
> /usr/bin/ld:
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libphobos.a(gc.o):
> bad relocation section name `.rel.gnu.linkonce.t_d_new?'
> dhry.o: In function `_Ddhry_dtime_FZd':
> dhry.o(.gnu.linkonce.t_Ddhry_dtime_FZd+0x16): undefined reference to
> `_imp__GetTickCount@0'
> collect2: ld returned 1 exit status
> --- errorlevel 256
>
>
> A terminal log of installation and compilation is attached.
>
>
>
May 14, 2003
Re: DMD 0.65 release
Walter wrote:
> Hopefully fixed another bad section
> name bug.
Thank you very much, error has gone.

Olaf

-- 
+----------------------------------------------------------------------+
I Dr. Olaf Rogalsky                         Institut f. Theo. Physik I I
I Tel.: 09131 8528440                       Univ. Erlangen-Nuernberg   I
I Fax.: 09131 8528444                       Staudtstrasse 7 B3         I
I rogalsky@theorie1.physik.uni-erlangen.de  D-91058 Erlangen           I
+----------------------------------------------------------------------+
May 14, 2003
Re: DMD 0.65 release - dmd-session
"Georg Wrede" <Georg_member@pathlink.com> wrote in message
news:b9t0it$jv9$1@digitaldaemon.com...
> Cannot compile dhry.
>
> [georg@abit d]$ dmd -I/home/georg/dmd/src/phobos dhry
> gcc dhry.o -o dhry -lphobos -lpthread -lm
> /usr/bin/ld:
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libphobos.a(gc.o):
> bad relocation section name `.rel.gnu.linkonce.t_d_new?'

Apparently, I had put on the web site the wrong libphobos.a. Try downloading
it again.

> dhry.o: In function `_Ddhry_dtime_FZd':
> dhry.o(.gnu.linkonce.t_Ddhry_dtime_FZd+0x16): undefined reference to
> `_imp__GetTickCount@0'
> collect2: ld returned 1 exit status
> --- errorlevel 256

dhry.d needs a little updating <g>.
May 14, 2003
Re: DMD 0.65 release
"John Reimer" <jjreimer@telus.net> wrote in message
news:pan.2003.05.14.04.07.08.544307@telus.net...
> Man, those are neat tools. :-)

Thanks!
May 14, 2003
Re: DMD 0.65 release - dmd-session
I downloaded the new compiler to my RH9 machine, it fixed by "bad relocation
section" warning.

Thanks!

Walter wrote:

> "Georg Wrede" <Georg_member@pathlink.com> wrote in message
> news:b9t0it$jv9$1@digitaldaemon.com...
> > Cannot compile dhry.
> >
> > [georg@abit d]$ dmd -I/home/georg/dmd/src/phobos dhry
> > gcc dhry.o -o dhry -lphobos -lpthread -lm
> > /usr/bin/ld:
> /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libphobos.a(gc.o):
> > bad relocation section name `.rel.gnu.linkonce.t_d_new?'
>
> Apparently, I had put on the web site the wrong libphobos.a. Try downloading
> it again.
>
> > dhry.o: In function `_Ddhry_dtime_FZd':
> > dhry.o(.gnu.linkonce.t_Ddhry_dtime_FZd+0x16): undefined reference to
> > `_imp__GetTickCount@0'
> > collect2: ld returned 1 exit status
> > --- errorlevel 256
>
> dhry.d needs a little updating <g>.

--
The Villagers are Online! villagersonline.com

.[ (the fox.(quick,brown)) jumped.over(the dog.lazy) ]
.[ (a version.of(English).(precise.more)) is(possible) ]
?[ you want.to(help(develop(it))) ]
May 15, 2003
Re: DMD 0.65 release - dmd-session
In article <b9tqb4$1m32$1@digitaldaemon.com>, Walter says...
>"Georg Wrede" <Georg_member@pathlink.com> wrote
>> Cannot compile dhry.
>Apparently, I had put on the web site the wrong libphobos.a. Try downloading
>it again.

Bliss!!! It works.

BTW, I really like D! 
This is only the second time I feel at home with a language.
(The first time was back in '83, when I finally got Turbo Pascal
for my Kaypro-II CP/M machine -- both of which I still have.)


>dhry.d needs a little updating <g>.


Thanks to Luna Kid, that too works now!
May 15, 2003
Re: DMD 0.65 release - dmd-session
"Georg Wrede" <Georg_member@pathlink.com> wrote in message
news:b9uml3$2l24$1@digitaldaemon.com...
> >dhry.d needs a little updating <g>.
> Thanks to Luna Kid, that too works now!

I uploaded a fix for that as well. I had it in my linux test suite, but had
forgotten to update the distribution directory.
Next ›   Last »
1 2 3
Top | Discussion index | About this forum | D home