Solved

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

Posted on 2011-03-21
3
527 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

738 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