Solved

How do I solve such below problem in KDevelop?

Posted on 2011-03-07
2
399 Views
Last Modified: 2012-05-11
Dear,

I am using Kdevelop tp debug my project with main application name MAIN.

I am using DBberkely in a separate header named as DParsing.h type of classes).

<DB.h>   is already added. I have an error saying that: erro no matching functionfor call to PARAMETERS::db_env_create.

So how to solve such a problem.

see attached file.


nabil.

Image0.png
0
Comment
Question by:nabilhammoud
2 Comments
 
LVL 16

Accepted Solution

by:
HooKooDooKu earned 500 total points
ID: 35069723
From what I can tell, it looks like your problem is not that the function db_env_create can not be found, but that you are passing the wrong set of parameters to it.

Indeed, I can see that according to the web site http://pybsddb.sourceforge.net/api_c/env_create.html the function requires a pointer to a pointer that points to a DB_ENV structure.  I can not see your decleration for your variable DBEnv, but I'm guessing that it is a DB_ENV structure.  Is so, you are only passing a pointer to a DB_ENV structure, not a pointer to a pointer.  So you need something more like this...

DB_ENV DBEnv;
DB_ENV* pDBEnv = & DBEnv;
ret = db_env_create( &pDBEnv, 0 );
0
 

Author Closing Comment

by:nabilhammoud
ID: 35154399
THX
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

863 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

20 Experts available now in Live!

Get 1:1 Help Now