View mode: basic / threaded / horizontal-split · Log in · Help
February 19, 2008
Re: Well I'm progressing -slowly
Ty Tower wrote:
> John Reimer Wrote:
>> On Linux, linking is exactly the same for static and dynamic libraries. 
>>   This is one of the advantages of the linux system.  There is no dll or 
>> import library complexity to deal with as there is on Windows.
>>
>> The difference with the developer packages is that they usually supply 
>> both the static and dynamic libs without the postfix version numbers, 
>> They also supply the necessary C headers and documentation.
>>
>> Some Linux distributions include the developer versions of the libraries 
>> by default.  Other distributions do not.  Ty might have to download 
>> these libs to get things working... which would explain a lot of the 
>> problems he's been having.
>>
> My distro is Mandriva 2007 spring and I have the developer packages installed.
> As I said the libraries are there under the name of /lib/libm-2.4.so , and linked  to it is  libm.so.6
> 
	That's from the glibc package. You must also install the
glibc-devel package. If you have, there should be a /usr/lib/libm.so
(which should be a symlink to one of the others). If this symlink is
not there, I suggest reinstalling glibc-devel.

	You might also want to try "rpm -V glibc-devel" to make sure that
your install has not been corrupted somehow.

		Jerome
- --
+------------------------- Jerome M. BERGER ---------------------+
|    mailto:jeberger@free.fr      | ICQ:    238062172            |
|    http://jeberger.free.fr/     | Jabber: jeberger@jabber.fr   |
+---------------------------------+------------------------------+
February 19, 2008
Re: Well I'm progressing -slowly
Bill Baxter Wrote:

> Really uncalled for.  Next time you want help, you might try being polite.
> 
> --bb

You may think so but this guy has been following my posts and posting without a lot of thought merely to have a shot . Bit of a paranoid I think to look at the time spent quoting other posts. 

When you look closely at his posts in this thread they are mostly  wrong and rubbish - something wrong with him-

There is a limit to being polite.
February 19, 2008
Re: Well I'm progressing -slowly
Jérôme M. Berger Wrote:

> 	That's from the glibc package. You must also install the
> glibc-devel package. If you have, there should be a /usr/lib/libm.so
> (which should be a symlink to one of the others). If this symlink is
> not there, I suggest reinstalling glibc-devel.
> 
> 	You might also want to try "rpm -V glibc-devel" to make sure that
> your install has not been corrupted somehow.
> 
> 		Jerome

I think you may have found it for me Jerome , looks like some corruption has crept in 
Here's the output

[root@linuxbox tytower]# rpm -V glibc-devel
missing     /boot/kernel.h-2.6.17
missing     /usr/lib/libm.so
[root@linuxbox tytower]#
February 20, 2008
Re: Well I'm progressing -slowly
Jesse Phillips Wrote:
[tytower@linuxbox dwt-linux]$ dmd main.d gcc main.o -o main -m32 -Xlinker
-L/usr/bin/../lib -ltango-user-dmd -ltango-base-dmd -lpthread -lm
main.o.data+0x38): undefined reference to
`_D3dwt7widgets7Display12__ModuleInfoZ' main.o.data+0x3c): undefined
reference to `_D3dwt7widgets5Shell12__ModuleInfoZ' main.o: In function
`_Dmain':
main.d.text._Dmain+0x8): undefined reference to
`_D3dwt7widgets7Display7Display7__ClassZ' main.d.text._Dmain+0x13):
undefined reference to
`_D3dwt7widgets7Display7Display5_ctorMFZC3dwt7widgets7Display7Display'
main.d.text._Dmain+0x1b): undefined reference to
`_D3dwt7widgets5Shell5Shell7__ClassZ' main.d.text._Dmain+0x29):
undefined reference to
`_D3dwt7widgets5Shell5Shell5_ctorMFC3dwt7widgets7Display7DisplayZC3dwt7widgets5Shell5Shell'
collect2: ld returned 1 exit status

Could not find reference to needed libraries, you used dmd instead of
dsss or rebuild, so the proper -l flags were not added.

Just in passing I do not agree with this .There is no reason dmd would not add the correct libraries
Prove it .
February 20, 2008
Re: Well I'm progressing -slowly
Ty Tower wrote:
> Jesse Phillips Wrote:
> [tytower@linuxbox dwt-linux]$ dmd main.d gcc main.o -o main -m32 -Xlinker
> -L/usr/bin/../lib -ltango-user-dmd -ltango-base-dmd -lpthread -lm
> main.o.data+0x38): undefined reference to
> `_D3dwt7widgets7Display12__ModuleInfoZ' main.o.data+0x3c): undefined
> reference to `_D3dwt7widgets5Shell12__ModuleInfoZ' main.o: In function
> `_Dmain':
> main.d.text._Dmain+0x8): undefined reference to
> `_D3dwt7widgets7Display7Display7__ClassZ' main.d.text._Dmain+0x13):
> undefined reference to
> `_D3dwt7widgets7Display7Display5_ctorMFZC3dwt7widgets7Display7Display'
> main.d.text._Dmain+0x1b): undefined reference to
> `_D3dwt7widgets5Shell5Shell7__ClassZ' main.d.text._Dmain+0x29):
> undefined reference to
> `_D3dwt7widgets5Shell5Shell5_ctorMFC3dwt7widgets7Display7DisplayZC3dwt7widgets5Shell5Shell'
> collect2: ld returned 1 exit status
> 
> Could not find reference to needed libraries, you used dmd instead of
> dsss or rebuild, so the proper -l flags were not added.
> 
> Just in passing I do not agree with this .There is no reason dmd would not add the correct libraries
> Prove it .

Prove it?  Prove that dmd does not guess which libraries you need?
There's nothing to prove.  DMD includes the libraries listed in your 
sc.ini and the source files and libs you list on the command line. 
Nothing else.  If you want to link with anything besides those, you have 
to list it yourself.  Or use DSSS.

--bb
February 20, 2008
Re: Well I'm progressing -slowly
On Wed, 20 Feb 2008 11:31:35 +0900, Bill Baxter wrote:

> If you want to link with anything besides those, you have 
> to list it yourself.  Or use DSSS.

Or Bud :-)

-- 
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell
February 20, 2008
Re: Well I'm progressing -slowly
Derek Parnell wrote:
> On Wed, 20 Feb 2008 11:31:35 +0900, Bill Baxter wrote:
> 
>> If you want to link with anything besides those, you have 
>> to list it yourself.  Or use DSSS.
> 
> Or Bud :-)

Yeh, I just wasn't going to recommend that because I haven't personally 
tried to build DWT with bud.  And I don't think it's mentioned in the 
DWT readme currently either.  But yeh, in theory Bud should work.

--bb
February 20, 2008
Re: Well I'm progressing -slowly
Derek Parnell wrote:
> On Wed, 20 Feb 2008 11:31:35 +0900, Bill Baxter wrote:
> 
>> If you want to link with anything besides those, you have 
>> to list it yourself.  Or use DSSS.
> 
> Or Bud :-)
> 


You mentioned in another post that you are still working on bud, but you 
haven't updated svn.  Is there a more recent build of bud that we can 
get a hold of?  I wouldn't mind giving it a try again.

-JJR
February 20, 2008
Re: Well I'm progressing -slowly
On Tue, 19 Feb 2008 21:18:01 -0800, John Reimer wrote:

>> Or Bud :-)
>> 
> 
> You mentioned in another post that you are still working on bud, but you 
> haven't updated svn.  Is there a more recent build of bud that we can 
> get a hold of?  I wouldn't mind giving it a try again.
> 
> -JJR

I'm a lucky guy :-) 

After saying I'd work on it last night, I get a call from a customer saying
that they have a big problem and thus now so do I. It positively absolutely
has to be fixed RIGHT NOW! So I work at it and sometime around 11:30pm I
finish. It's now the next day and I'm waiting for them to say everything's
alright. I haven't heard from all day them so I'm guessing things can't be
too bad ... maybe I should call anyways.

Also, Walter has now delivered DMD 2.011 so I have to recompile and fix up
the 'gotchas' again. Maybe tonight ... or maybe I'll just hide away and
play some CoD4 online :LOL:

-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
20/02/2008 4:36:40 PM
February 20, 2008
Re: Well I'm progressing -slowly
Nah You are missing the point here.
dmd picks up dmd.conf in linux and the libraries are pointed to by that file 

ld picks up what it needs and they end up in the command line 
so the post is not right 
dmd /MyStuff/main.d
dsss build /Mystuff/main.d

both do the same No?
1 2 3
Top | Discussion index | About this forum | D home