discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Error in OSX compile


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] Error in OSX compile
Date: Thu, 15 Feb 2007 17:09:06 -0500
User-agent: Thunderbird 1.5.0.9 (X11/20061206)

Michael Dickens wrote:
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

Michael,

Sorry about this one, but try it now. I just did a check in to the trunk since it was so simple. Although I might have been better to redefine d_payload_size to a ssize_t, there are issues with that data type and SWIG; it didn't like me using ssize_t in the constructor argument. Instead, it's now being cast to a (ssize_t) in the std::min function. That should be generic on any system.

Let me know if this works or not.

Tom





reply via email to

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