Solved

How do I solve such below problem in KDevelop?

Posted on 2011-03-07
2
400 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
improve Shell script 5 149
basic hardware to learn oop advanced design patterns 3 95
Printing the elements of a set declared inside a map in C++. 3 47
Problem to start Neon 20 103
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

786 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