Solved

How do I solve such below problem in KDevelop?

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

705 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