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? |
|
undefined preprocessing identifier
Started by ●June 12, 2001
Reply by ●June 12, 20012001-06-12
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. |
Reply by ●June 12, 20012001-06-12
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 \ \/\/ \__\/ \__\/ |