**I have download a setup.exe for GNU database library GDBM. It's going to be
installed in C:\Program Files\GnuWin32 (lib, include, etc.).

My mingw is in C: (C:\MinGW).

Could you please tell me what is the right path for GDBM on windows.
I used GDBM on Linux and compiled and linked .c file to GDBM library in
the following way;
gcc mygdbmprog.c -o mygdbmprog -ldb.

I want to build and link program to gdbm library on windows.

Do I need to install it in root (C:)?

Thank you.**

Recommended Answers

All 2 Replies

Member Avatar for LastMitch

Could you please tell me what is the right path for GDBM on windows.

It really self-explanatory

http://gnuwin32.sourceforge.net/install.html

What did you do?

Do I need to install it in root (C:)?

Yes, it's usually in the C drive but if you have D drive you can installed it if you don;t have a C drive

Thank you for the help. Installation instruction given on sourceforge seems to be based on
gdbm source and I downloaded binary setup.exe but, anyway I have again read it and learnt
that it can be installed in any dir(specially the built after 2002).

I set the bin dir to PATH and tried to run with eclipse and this time it can't find
gdbm-dll.h. There is a gdbm.h in the include dir and defined the following in gdbm.h;

/* Protection for multiple includes. */
#ifndef _GDBM_H_
#define _GDBM_H_
#include <gdbm-dll.h>
...
...
GDBM_DLL_IMPEXP void gdbm_close __P((GDBM_FILE));
GDBM_DLL_IMPEXP int gdbm_store __P((GDBM_FILE, datum, datum, int));
...
...

Why does it looking for gdbm-dll.h?

Sorry, I mistakenly wrote in prev msg that I used -ldb but it should be -lgdbm (in my slack)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.