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: Eric Blossom
Subject: Re: [Discuss-gnuradio] Error in OSX compile
Date: Thu, 15 Feb 2007 04:53:36 -0800
User-agent: Mutt/1.5.9i

> > gr_udp_sink.cc:168: error: no matching function for call to 'min
> > (int&, long int)'
> > make[5]: *** [gr_udp_sink.lo] Error 1

I believe this is a 64-bit related problem.

int and long int are often different sizes on 64-bit machines.


> > 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

Eric




reply via email to

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