Sueca
asked on
error C2065
I get all these errors when trying to compile my code
....source\method.cpp(394) : error C2039: 'THROUGH_FSP' : is not a member of 'SSIFBLib'
....source\method.cpp(397) : error C2039: 'ARB_EXT_REF' : is not a member of 'HPESGDLib'
....source\method.cpp(397) : error C2065: 'ARB_EXT_REF' : undeclared identifier
....source\method.cpp(401) : error C2039: 'ARB_ON' : is not a member of 'HPESGDLib'
....source\method.cpp(401) : error C2065: 'ARB_ON' : undeclared identifier
....source\method.cpp(402) : error C2039: 'MOD_ON' : is not a member of 'HPESGDLib'
....source\method.cpp(402) : error C2065: 'MOD_ON' : undeclared identifier
....source\method.cpp(408) : error C2039: 'SPECTRUM' : is not a member of 'FSIQLib'
....source\method.cpp(408) : error C2065: 'SPECTRUM' : undeclared identifier
etc ..
These constats are defined in a COM object library and I have actually checked with the OLE viewer. Even the
Visual C++ Editor (context recognizer) kan find these when writing the library.
I assume that it has something to do with the settings of the project. But I havent been able to find out what
it is going wrong.
Can anybody help me ?
SUECA
....source\method.cpp(394)
....source\method.cpp(397)
....source\method.cpp(397)
....source\method.cpp(401)
....source\method.cpp(401)
....source\method.cpp(402)
....source\method.cpp(402)
....source\method.cpp(408)
....source\method.cpp(408)
etc ..
These constats are defined in a COM object library and I have actually checked with the OLE viewer. Even the
Visual C++ Editor (context recognizer) kan find these when writing the library.
I assume that it has something to do with the settings of the project. But I havent been able to find out what
it is going wrong.
Can anybody help me ?
SUECA
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What is SSIFBLib:: - class name? namespace? Try without it. Search for THROUGH_FSP in the project directory and see how it is defined in compiler-generated h-file (output of #import directive).
And why did you accepted my answer?
And why did you accepted my answer?
ASKER
SSIFBLib :: is the COM-object library name but I have tried to use namespaces and
is the same problem
This is the definition in the h-file
/* [helpstring] */ const int THROUGH_FSP = 1;
/* [helpstring] */ const int MONITOR_FSP = 2;
/* [helpstring] */ const int FEEDBACK_FSP = 3;
/* [helpstring] */ const int THROUGH_NA = 4;
/* [helpstring] */ const int MONITOR_NA = 5;
/* [helpstring] */ const int FEEDBACK_NA = 6;
/* [helpstring] */ const int EC_OK = 0;
/* [helpstring] */ const int EC_PIC_ALARM = -10009;
/* [helpstring] */ const int EC_PIC_WARMUP = -10008;
/* [helpstring] */ const int PA_SSM_2G = 1;
/* [helpstring] */ const int PA_SSM_800 = 2;
/* [helpstring] */ const int PA_RBS3303 = 3;
-----
I dont know .. wasnt I supposed to accept ( I use this site very seldom )
ASKER
#import "../DEPENDENCIES/Instrumen
#import "../DEPENDENCIES/Instrumen
#import "../DEPENDENCIES/Instrumen
#import "../DEPENDENCIES/Instrumen
#import "../DEPENDENCIES/Instrumen
#import "../DEPENDENCIES/Instrumen
#import "../DEPENDENCIES/Instrumen
It seems to be only the constants defined the ones not compiling ...
not the methods (at leat in this stage of compilation)
NOT COMPILING ...
SetRFWay(SSIFBLib::THROUGH
m_ptrSigGen->SetArbReferen
m_ptrSigGen->SetArbState(H
COMPILING ...
m_ptrSigGen->SetArbReconst