Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP


Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | Analog Devices DSPs | undefined preprocessing identifier

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

undefined preprocessing identifier - Author Unknown - Jun 12 0:14:00 2001



Hi,

I'm using VisualDSP++ 2.0 (ADSP-218x). When I compile I get the following
warning:

"C:\Program Files\Analog Devices\VisualDSP\218x\include\signal.h", line 97:
remark #193-D:
zero used for undefined preprocessing identifier
#if __cplusplus
^
How do I cause "__cplusplus" to be defined?



______________________________
Start your Android Ice Cream Sandwich development on TI's AM35x Sitara ARM Cortex-A8 processor today.



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

Re: undefined preprocessing identifier - Kenneth Porter - Jun 12 13:04:00 2001

On Mon, 11 Jun 2001 17:14:14 -0700, wrote:

> I'm using VisualDSP++ 2.0 (ADSP-218x). When I compile I get the following
> warning:
>
> "C:\Program Files\Analog Devices\VisualDSP\218x\include\signal.h", line 97:
> remark #193-D:
> zero used for undefined preprocessing identifier
> #if __cplusplus
> ^
> How do I cause "__cplusplus" to be defined?

Looks like a bug in the header file. __cplusplus is defined by all C++
compilers, and not defined by C compilers. For dual-mode compilers,
they either define it or not based on which mode you've requested. (For
SHARC, this is done with the command line option -c++.)

My guess is that the line should read "#ifdef __cplusplus". You should
see if ADI has an update (possibly unannounced) which fixes this.



______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



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

Re: undefined preprocessing identifier - Russell Shaw - Jun 12 13:09:00 2001

Are you saving your file as .cpp instead of just .c ? Also, check any
ide options.

wrote:
>
> Hi,
>
> I'm using VisualDSP++ 2.0 (ADSP-218x). When I compile I get the following
> warning:
>
> "C:\Program Files\Analog Devices\VisualDSP\218x\include\signal.h", line 97:
> remark #193-D:
> zero used for undefined preprocessing identifier
> #if __cplusplus
> ^
> How do I cause "__cplusplus" to be defined?
>
--
___ ___
/ /\ / /\
/ /__\ / /\/\
/__/ / Russell Shaw, B.Eng, M.Eng(Research) /__/\/\/
\ \ / Victoria, Australia, Down-Under \ \/\/
\__\/ \__\/


______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



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