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. |
|
Operand overloading in CCS
Started by ●December 7, 2004
Reply by ●December 9, 20042004-12-09
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 |
Reply by ●December 9, 20042004-12-09
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 > > _____________________________________ > Note: If you do a simple "reply" with your email client, only the author > of this message will receive your answer. You need to do a "reply all" if > you want your answer to be distributed to the entire group. > > _____________________________________ > About this discussion group: > > To Join: > > To Post: > > To Leave: > > Archives: http://www.yahoogroups.com/group/code-comp > > More Groups: http://www.dsprelated.com > > Yahoo! Groups Links > > -- GMX ProMail mit bestem Virenschutz http://www.gmx.net/de/go/mail +++ Empfehlung der Redaktion +++ Internet Professionell 10/04 +++ |