View previous topic :: View next topic |
Author |
Message |
teales
Joined: 21 May 2007 Posts: 24 Location: Bangalore
|
Posted: Thu Dec 22, 2011 12:45 pm Post subject: Linking problem |
|
|
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 |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Thu Dec 22, 2011 4:19 pm Post subject: Re: Linking problem |
|
|
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 |
|
|
teales
Joined: 21 May 2007 Posts: 24 Location: Bangalore
|
Posted: Thu Dec 22, 2011 10:52 pm Post subject: |
|
|
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 |
|
|
Jordi Sayol
Joined: 14 Nov 2011 Posts: 14
|
Posted: Fri Dec 23, 2011 3:11 am Post subject: |
|
|
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 |
|
|
|