home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c++.moderated      Moderated discussion of C++ superhackery      33,346 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 32,149 of 33,346   
   James K. Lowden to Neb   
   Re: Passing by Reference   
   16 Apr 12 08:09:51   
   
   From: jklowden@speakeasy.net   
      
   On Mon, 16 Apr 2012 07:04:53 -0700 (PDT)   
   Neb  wrote:   
      
   > In compiling I am recieving the error:   
   >   
   > Error E2293 test.ccp 4: ) expected   
      
   You're invoking the C compiler, not the C++ compiler, perhaps because   
   the extension you're using is ".ccp", not the conventional ".cpp".   
      
   As a beginner, I suggest you not call any program "test", only to save   
   yourself some confusion and frustration.  On systems other than   
   Windows, there is usually a program called "test", often /bin/test.   
   Unless you're careful, you'll invoke that test instead of yours.   
      
   Besides, you'll have a lot of tests.  Make a test directory, call it   
   "t", and put your program in it.  This one might be called   
   "t/swap.cpp".   
      
   And use , not .  It's typesafe, and it's fun.  :-)   
      
   HTH.   
      
   --jkl   
      
      
   --   
         [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
         [ comp.lang.c++.moderated.    First time posters: Do this! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca