discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Compile Error Under Cygwin: Undefined Symbol"INFI


From: Don Ward
Subject: Re: [Discuss-gnuradio] Compile Error Under Cygwin: Undefined Symbol"INFINITY"
Date: Wed, 8 Aug 2007 15:11:17 -0400

----- Original Message ----- From: "Reid N Kleckner" <address@hidden>
To: <address@hidden>
Sent: Wednesday, August 08, 2007 2:17 PM
Subject: [Discuss-gnuradio] Compile Error Under Cygwin: Undefined Symbol"INFINITY"


Is anyone familiar with the following error? I don't see it already on the
list.

g++ -DHAVE_CONFIG_H -I. -I../../../.. -DOMNITHREAD_POSIX=1 -I../../../../omnith
read -I../../../../gnuradio-core/src/lib/runtime -I../../../../gnuradio-core/src
/lib/general -I../../../../gnuradio-core/src/lib/general -I../../../../gnuradio-
core/src/lib/gengen -I../../../../gnuradio-core/src/lib/gengen -I../../../../gnu
radio-core/src/lib/filter -I../../../../gnuradio-core/src/lib/filter -I../../../
../gnuradio-core/src/lib/reed-solomon -I../../../../gnuradio-core/src/lib/io -I. ./../../../gnuradio-core/src/lib/g72x -I../../../../gnuradio-core/src/lib/swig -
I../../../../gnuradio-core/src/lib/swig -I/usr/local/include -I/usr/include/boos
t-1_33_1/ -I/usr/local/include -g -O2 -Wall -Woverloaded-virtual -MT gr_peak_det ector_fb.lo -MD -MP -MF .deps/gr_peak_detector_fb.Tpo -c gr_peak_detector_fb.cc
-DDLL_EXPORT -DPIC -o .libs/gr_peak_detector_fb.o
gr_peak_detector_fb.cc: In member function `virtual int gr_peak_detector_fb::wor
k(int, gr_vector_const_void_star&, gr_vector_void_star&)':
gr_peak_detector_fb.cc:64: error: `INFINITY' undeclared (first use this function
)
gr_peak_detector_fb.cc:64: error: (Each undeclared identifier is reported only o
nce for each function it appears in.)
make[6]: *** [gr_peak_detector_fb.lo] Error 1

I'm using current svn under Cygwin with GCC 3.4.4-3.  Obviously this is a
constant that somehow got undefined. If I were to go in and give it a quick
fix via #define INFINITY (something), what would I use?

When building from the svn repository on Cygwin, I use the following:

CPPFLAGS="-DNOMINMAX -DINFINITY=HUGE_VAL" ./configure --with-boost-include-dir=/usr/include/boost-1_33_1

INFINITY appears to be (inadvertently?) omitted from the Cygwin include files. NOMINMAX works around a Microsoft incompatibility with ANSI C++ (required when using libusb 0.1.12; see http://www.gnuradio.org/trac/ticket/145).

-- Don W.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]