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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem in C/C++ Headers

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0


Hello,
Our company perchased 2 Libraries. By default one of the functions' signature is same in both the Libraries.
This is the signature :
int Initialize ();
float Initialise ();

I included both the header files in my .cpp file. Whenever i am trying to call a Initialize () funtion only 'int Initialize ()' is being called. How do i distinguish the both functions from one file.


 
try to do
namespace xxx
{
#include<a.h> //instead of a put your own first header
}
namespace yyy
{
#include<b.h> //instead of a put your own second header
}
....calling some of functions
xxx::Initialize ();
yyy::Initialize ();
and also try to see if some one of them is already in a namespace or not.

John Fill
1c.bmp


ivfmd@mail.md
 
you could declare 2 function pointer as well and use the function pointers to call them.

float (*floatFxn)();
int (*intFxn)();

floatFxn = Initialize;
intFxn = Initialize;

See if that works.

matt

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top