Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How do I solve such below problem in KDevelop?

Posted on 2011-03-07
2
Medium Priority
?
412 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 1500 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 Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

609 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