discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Getting the API version at compile time


From: Johnathan Corgan
Subject: Re: [Discuss-gnuradio] Getting the API version at compile time
Date: Thu, 13 Oct 2011 01:42:24 +0200

On Oct 12, 2011, at 20:13, Tom Rondeau <address@hidden> wrote:

On Wed, Oct 12, 2011 at 5:26 AM, Peter D. Massam <address@hidden> wrote:

I need to be able to maintain my program for both old and new systems and I've been looking for a version constant that I can use for conditional compilation.

You can find the version information in $(top_builddir)/gnuradio-core/gnuradio-core.pc. This is filled in with the information in $(top_srcdir)/version.sh. Where top_builddir is where you are building the project, and top_builddir = top_srcdir if you are building in the same directory that contains the source code.

In addition to compile time, in the >= 3.3 API we added a way to ask this at runtime via the gr.version() call in Python and gr_version() function from C++.

 (I know you're not using the 3.3 API yet, but it will be another option for you when you update your application.)

Johnathan 

reply via email to

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