Solved

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

Posted on 2011-03-21
3
528 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

691 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