Solved

How do I solve such below problem in KDevelop?

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
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…
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.
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…

747 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

13 Experts available now in Live!

Get 1:1 Help Now