FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Linking problem

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
teales



Joined: 21 May 2007
Posts: 24
Location: Bangalore

PostPosted: Thu Dec 22, 2011 12:45 pm    Post subject: Linking problem Reply with quote

Trying to link my COMPO app compiled with DMD 2.057, I'm getting errors like:

src/gtkc/Loader.d:

undefined reference

_D3std5stdio4File17LockingTextWriter8
__cpctorMFKS3std5stdio4File17LockingTextWriterZv

Anyone got any suggestion?

Steve
Back to top
View user's profile Send private message Send e-mail
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Thu Dec 22, 2011 4:19 pm    Post subject: Re: Linking problem Reply with quote

teales wrote:
Trying to link my COMPO app compiled with DMD 2.057, I'm getting errors like:

src/gtkc/Loader.d:

undefined reference

_D3std5stdio4File17LockingTextWriter8
__cpctorMFKS3std5stdio4File17LockingTextWriterZv

Anyone got any suggestion?

Steve


The linker is trying to link with a phobos lib from an older release.
Back to top
View user's profile Send private message
teales



Joined: 21 May 2007
Posts: 24
Location: Bangalore

PostPosted: Thu Dec 22, 2011 10:52 pm    Post subject: Reply with quote

Thanks Mike,

Actually it was the other way round. I had just installed dmd 2.057 and the matching gtkd 1.5.1 from the .deb mentioned in the forum.

The latter installed the library in /usr/lib/gtkd/32. But 'Search for files' showed only one libgtkd.a in /usr/local/lib quite reproducibly, and it was that - an older version of libgtkd that I was linking against.

Steve
Back to top
View user's profile Send private message Send e-mail
Jordi Sayol



Joined: 14 Nov 2011
Posts: 14

PostPosted: Fri Dec 23, 2011 3:11 am    Post subject: Reply with quote

To override problems like this, you can use the pkg-config configuration file for gtkd, included in libgtkd-dev packages.

Best regards,
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group