< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] resiprocate does not compile with VC6


Hi All,

  I have read previous posting on compile resip with VC6. however
there are still errors, like this:

--------------------Configuration: resiprocate - Win32
Debug--------------------
Compiling...
Preparse.cxx
e:\myphone\resiprocate-0.4.0\resiprocate\preparse.cxx(71) : error C2061:
syntax error : identifier 'mTransitionTable'
e:\myphone\resiprocate-0.4.0\resiprocate\preparse.cxx(73) : error C2228:
left of '.nextState' must have class/struct/union type
e:\myphone\resiprocate-0.4.0\resiprocate\preparse.cxx(74) : error C2228:
left of '.workMask' must have class/struct/union type
Error executing cl.exe.

Preparse.obj - 3 error(s), 0 warning(s)

--------------- The piece of code in Preparse.cxx is listed:
    for(int st = stateStart ; st < stateEnd ; st++)
        for(int di = dispStart ; di < dispEnd ; di++)
            for(int ch = charStart ; ch < charEnd ; ch++)
            {
                Edge& edge( mTransitionTable[st][di][ch] ); <----- Error
lines
                edge.nextState = next;
                edge.workMask = workMask;
            }

-------------

I change the errored line to 
                Edge edge( mTransitionTable[st][di][ch] );

and VC6 does not complain this time, Can I change it this way? or can anyone
tell me
what does the "&" mean?

Thanks in advance!


~~~~心~~~明~~~妙~~~现~~~~
    Qian Ling, MTS
    Bell Labs Research China
    +8610-68748088 ext. 8574
    http://qlw.xiloo.com
~~~~~~~~~~~~~~~~~~~~~~~~