BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Newbie build problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Craig Graham
Guest





PostPosted: Tue Apr 06, 2004 8:13 am    Post subject: Newbie build problem Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
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, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.