Solved

How to solve the problem : undefined refrence to 'db_create'?

Posted on 2011-03-21
3
524 Views
Last Modified: 2012-05-11
Dear,
I am using kdevelop kit to debug a simple project.

The project has <db.h> berkeley DB header. When I tried to build the project, an erro showing that an "undefined refrenec to db_create"...

How do i fix such a problem and continue debug?

see attached image ...


nabil.

Image.png
0
Comment
Question by:nabilhammoud
3 Comments
 
LVL 40

Accepted Solution

by:
evilrix earned 250 total points
ID: 35180718
You need to link to whatever library contains the runtime for that function. In this case it looks like you're using Berkley DB so it'll be something like db_cxx or db_c.
0
 
LVL 8

Assisted Solution

by:lomo74
lomo74 earned 250 total points
ID: 35188148
link against libdb.a
i.e. add -ldb to your linker commandline
or, if you prefer do it in your IDE, go to your project settings, you should find something like "libraries" or "dependencies" and add the required library
0
 

Author Closing Comment

by:nabilhammoud
ID: 35204549
THX
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to install Ubuntu 16 in DELL venue 8 pro 20 300
Impact of disabling SMB v1 on Mac and Linux clients 4 548
linux SFTP 8 61
Redhat upgrade 1 26
Fine Tune your automatic Updates for Ubuntu / Debian
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question