Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using c-isam library

Status
Not open for further replies.

stuartd

Programmer
Jan 8, 2001
146
US
Hi,
I am using an old C library (c-isam) which has 2 functions with the same name(!) :

isindexinfo(int,struct keydesc*,int) and
isindexinfo(int,struct dictinfo*,int)

I can't get my c++ complier to compile my program which uses these functions.
First I need to declare the function, but by declaring one, the second causes confilict.

I need both as they do different things.

Can anyone help?
 
If it's a C library, then declaring two functions with the same name is indeed illegal. If these two appear in the same file, there must be an
Code:
#ifdef
that only allows one to be declared.

On the other hand, if you're dealing with C++, those two should not cause conflict (unless they're declared in an
Code:
extern "C"
block) because they have different argument lists.

You say that you need to declare the function. I'm not sure what you mean by that; they're already declared in the header.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top