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: Wed, 14 Feb 2007 22:17:10 -0500

> -----Original Message-----
> From: address@hidden [mailto:discuss-
> address@hidden On Behalf Of Michael Dickens
> Sent: Wednesday, February 14, 2007 5:44 PM
> To: gnuradio mailing list
> Subject: [Discuss-gnuradio] Error in OSX compile
> 
> 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

I had no problem with this (not even a warning) on my Linux installation. I
think I have access to an OSX installation in my lab, so I'll look into this
first thing in the morning when I get to work.

I'm curious is this is a problem in NetBSD, too?

I really hate these platform-specific problems...

Tom






reply via email to

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