[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] Error in OSX compile
From: |
Michael Dickens |
Subject: |
[Discuss-gnuradio] Error in OSX compile |
Date: |
Wed, 14 Feb 2007 17:44:18 -0500 |
In: gnuradio-core/src/lib/io/ :
g++ -DHAVE_CONFIG_H -I. -I../../../.. -DOMNITHREAD_POSIX=1 -
I../../../../omnithread -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../../../../gnuradio-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/opt/local/include -g -O2 -Wall -Woverloaded-virtual -
MT gr_udp_sink.lo -MD -MP -MF .deps/gr_udp_sink.Tpo -c
gr_udp_sink.cc -fno-common -DPIC -o .libs/gr_udp_sink.o
gr_udp_sink.cc: In member function 'virtual int gr_udp_sink::work
(int, gr_vector_const_void_star&, gr_vector_void_star&)':
gr_udp_sink.cc:168: error: no matching function for call to 'min
(int&, long int)'
make[5]: *** [gr_udp_sink.lo] Error 1
This is a call to std::min, which from the C++ sources requires the
same type. Probably better to upgrade "d_payload_size" to a ssize_t
instead of downgrading the "long int" second argument. Does this
work correctly on other platforms? - MLD
- [Discuss-gnuradio] Error in OSX compile,
Michael Dickens <=