none
error C2054: expected '(' to follow 'inline'

    Question

  • Hi,

    Trying to port an application to compile with VC++. Am new to this environment though. Am getting the following errors while compiling.


    machine.c(1655) : error C2054: expected '(' to follow 'inline'
    machine.c(1655) : error C2085: 'DeliverViaNetworkOrPxshm' : not in formal parame
    ter list
    machine.c(1655) : error C2143: syntax error : missing ';' before '{'
    machine.c(1748) : warning C4013: 'DeliverViaNetworkOrPxshm' undefined; assuming
    extern returning int
    machine.c(2517) : warning C4244: '=' : conversion from 'SOCKET' to 'int', possib
    le loss of data
    unix2nt_cc Fatal Error in directory /cygdrive/c/charmwork/charm-6.0/charm-6.0/ne
    t-win64/tmp

    The corresponding lines of code are:

    inline void DeliverViaNetworkOrPxshm(OutgoingMsg ogm,OtherNode node,int rank,unsigned int broot,int copy){ //This is line 1655
    #if CMK_USE_PXSHM
         {
    #if PXSHM_STATS
        double _startValidTime = CmiWallTimer();
    #endif
          int ret=CmiValidPxshm(ogm,node);
    #if PXSHM_STATS
        pxshmContext->validCheckTime += CmiWallTimer() - _startValidTime;
    #endif           
          MACHSTATE4(3,"Msg ogm %p size %d dst %d usePxShm %d",ogm,ogm->size,ogm->dst,ret);
          if(ret){
             CmiSendMessagePxshm(ogm,node,rank,broot);
           }else{
             DeliverViaNetwork(ogm, node, rank, broot,copy);
           }
          }
    #else
          DeliverViaNetwork(ogm, node, rank, broot, copy);
    #endif           
       
    }

    Help regarding this?
    Wednesday, July 09, 2008 8:35 AM

Answers