[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
error while debugging
From: |
bhagwan |
Subject: |
error while debugging |
Date: |
17 May 2005 21:50:11 -0700 |
User-agent: |
G2/0.2 |
We are porting an application from Windows to Linux. The native code is
in VC++.
We're getting the following error in g++ for the code given below...
CBlackBox.cpp: In constructor `CBlackBox::CBlackBox(CNode*,
std::vector<CBus*,
std::allocator<CBus*> >&, std::vector<CBus*, std::allocator<CBus*>
>&,
std::vector<CBus*, std::allocator<CBus*> >&, CMacroInformation*,
std::string&, bool)':
CBlackBox.cpp:53: no matching function for call to
`CModuleInstantiationNode::
CModuleInstantiationNode(CNode*&, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&, std::string,
std::string,
std::vector<CBus*, std::allocator<CBus*> >&,
std::vector<std::string,
std::allocator<std::string> >, std::vector<CBus*,
std::allocator<CBus*> >&,
std::vector<std::string, std::allocator<std::string> >,
std::vector<CBus*,
std::allocator<CBus*> >&, std::vector<std::string,
std::allocator<std::string> >, ENodeTypes)'
the code in vc++ is :
File name CBlackBox.cpp
-----------------------
36 CBlackBox::CBlackBox(CNode *replaceNode, vector<CBus*> &inBuses,
vector<CBus*> &outBuses,
vector<CBus*> &inoutBuses,
CMacroInformation *mi,
string &instanceName,
bool inferred)
42 :CModuleInstantiationNode(replaceNode, instanceName,
mi->getTypeName(),
mi->getTypeName(),
inBuses,
mi->getInputPorts(),
outBuses,
mi->getOutputPorts(),
inoutBuses,
mi->getInoutPorts(),
LN_BLACK_BOX),m_pImplementationDetails(mi),
m_bInferred(inferred)
53 {
54 setPinTypes();
55 }
The declaration of constructor is as following :
File name CBlackBox.h
---------------------
CBlackBox(CNode *replaceNode,
vector<CBus*> &inBuses,
vector<CBus*> &outBuses,
vector<CBus*> &inoutBuses,
CMacroInformation *mi,
string &instanceName,
bool inferred = true);
Has anyone got a soln for it...
we are also unable to understand this sort of code in vc++..(what
really is meant by line no 42)
- error while debugging,
bhagwan <=