Solved

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now