Sign in

username:

password:



Not a member?

Search code-comp



Search tips

Subscribe to code-comp



code-comp by Keywords

ARM7 | BIOS | Bug | EVM | JTAG | Linker | LOG_printf | McBSP | Profiling | Relocation | RTDX | Simulator | Target | Watch


Discussion Groups

Discussion Groups | Code-Composer | Operand overloading in CCS

Technical discussions about Code Composer Studio.

  

Post a new Thread

Operand overloading in CCS - mano_park - Dec 7 17:33:00 2004





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.






(You need to be a member of code-comp -- send a blank email to code-comp-subscribe@yahoogroups.com )

Re: Operand overloading in CCS - Michael Bramberger - Dec 9 7:52:00 2004


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





(You need to be a member of code-comp -- send a blank email to code-comp-subscribe@yahoogroups.com )

Re: Operand overloading in CCS - Author Unknown - Dec 9 16:41:00 2004


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 +++





(You need to be a member of code-comp -- send a blank email to code-comp-subscribe@yahoogroups.com )