
|
Hi, I want to write program for c55x DSP using c++ class in CCS v2.2. But i don't think CCS support operand overloading for c++ class because it alerts error for multiple definition of operator. Does CCS Compiler support the operand overloading? If so, what am I missing now? Thanks Mano. |
|
|
|
mano_park wrote: > Hi, > > I want to write program for c55x DSP using c++ class in CCS v2.2. > But i don't think CCS support operand overloading for c++ class > because it alerts error for multiple definition of operator. > > Does CCS Compiler support the operand overloading? > If so, what am I missing now? Be sure that CCS is using the C++ compiler. Is your file extension cpp or c++? If not, either change it to cpp or c++, or check a checkbox in the compiler options like "Use c++ compiler for .c files" (maybe this is not the exact name). I have done lots of operator overloading, even with templates, and finally everything at least has been compiled... Mike |
|
Hi, you can also use the -fp compilerswitch to tell that the c++ compiler should be used. See CCS help for details: - fp filename Identifies filename as a C++ file, regardless of its extension. By default, the compiler treats .C, .cpp, .cc and .cxx files as a C++ files. bye, thomas > mano_park wrote: > > > > > > Hi, > > > > I want to write program for c55x DSP using c++ class in CCS v2.2. > > But i don't think CCS support operand overloading for c++ class > > because it alerts error for multiple definition of operator. > > > > Does CCS Compiler support the operand overloading? > > If so, what am I missing now? > > Be sure that CCS is using the C++ compiler. Is your file extension cpp > or c++? If not, either change it to cpp or c++, or check a checkbox in > the compiler options like "Use c++ compiler for .c files" (maybe this is > not the exact name). > > I have done lots of operator overloading, even with templates, and > finally everything at least has been compiled... > > Mike > > _____________________________________ > Yahoo! Groups Links -- GMX ProMail mit bestem Virenschutz http://www.gmx.net/de/go/mail +++ Empfehlung der Redaktion +++ Internet Professionell 10/04 +++ |