 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Craig Graham Guest
|
Posted: Tue Apr 06, 2004 8:13 am Post subject: Newbie build problem |
|
|
I am trying to get to grips with CBuilderX and am having trouble building
one of the demo files from the "glibcrypt" distribution. The error I get on
building is
undefined reference to 'gpg_strerror(unsigned)' at line 224
This is defined in gpg-error.h. The source has the line
include "/usr/local/include/gpg-error.h"
and in that file is the definition
const char *gpg_strerror (gpg_error_t err);
I know the symbol is present in the library;
[root@splosh craig]# nm /usr/local/lib/libgpg-error.so |grep
gpg_strerror
00000990 T gpg_strerror
00000af0 T gpg_strerror_r
[root@splosh craig]#
So why doesn't it build? I have tried adding various paths to various
options and the command that's being used to build (link?) the app is
g++ -B/usr/local/include -L/usr/local/lib -o
/usr/NETDRIVE/Work/linux/Debug_Build/ConsoleApp1 linux/Debug_Build/basic.o
/usr/local/lib/libgpg-error.so /usr/local/lib/libgcrypt.so.7
First I added the specific files at the end, then I added /usr/local/include
and /usr/local/lib to the search paths. Neither gets rid of the problem.
This is probably something very simple because I've never built things
before on Linux (aside from downloaded stuff that does it itself!).
--
Dr. Craig Graham, Software Engineer
Advanced Analysis and Integration Limited, UK. http://www.aail.co.uk/
|
|
| Back to top |
|
 |
|
|
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
|
|