discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] SVN Compile Error Under Cygwin: Omnithread Stuff


From: Reid N Kleckner
Subject: [Discuss-gnuradio] SVN Compile Error Under Cygwin: Omnithread Stuff
Date: Wed, 08 Aug 2007 16:33:42 -0400
User-agent: Internet Messaging Program (IMP) H3 (4.0.3)

So, that advice fixed that problem.  Now I have a problem similar to the one
documented here: http://www.gnuradio.org/trac/ticket/138  I applied the patch
listed there, but my error has not gone away:

/usr/src/gnuradio/gnuradio-core/src/lib/swig/gnuradio_swig_py_runtime.cc:(.text+
0x325be): undefined reference to `omni_thread::init_t::init_t()'
/usr/src/gnuradio/gnuradio-core/src/lib/swig/gnuradio_swig_py_runtime.cc:(.text+
0x325dc): undefined reference to `omni_thread::init_t::~init_t()'

Is there a similar fix to make it link/include/magic omnithread before building
the rest of the code?

Thanks,
Reid

Quoting Don Ward <address@hidden>:
----- 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]