discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Using Extern variables in GNURadio


From: sumit kumar
Subject: Re: [Discuss-gnuradio] Using Extern variables in GNURadio
Date: Tue, 23 Jan 2018 18:19:45 +0100

Hi Marcus, 

I am well aware of the usage of extern in C :) 

Probably I should have put the question in another way. It was a question about initializing some variables at the beginning and to be used later. 

I am fixing my issue by initializing arrays in the class constructor call. 

Thanks 

Sumit  





On 23 January 2018 at 17:48, Müller, Marcus (CEL) <address@hidden> wrote:
Dear Sumit,

this is by no means a GNU Radio question – it's not even a C++
question, it's quintessentially a question about what the "extern"
keyword in C means. I'm not sure I should be giving you an intro to C
visibility, object linking and storage, because that will quickly
exceed the scope of both this list and what you're trying to solve.

So, with you being the only one that actually has that code in front of
you, knowing what it does and knowing how you want to structure your
C++ GNU Radio program, I'd like to refer you to the usual sources
(wikipedia "External Variable", isocpp.org "Mixing C and C++") for your
own reading pleasure!

Best regards,
Marcus

On Tue, 2018-01-23 at 16:00 +0100, sumit kumar wrote:
> I am translating one program C program to GNU Radio. In that C program, in the main(), at the very beginning, some initializer functions were called which populated some arrays.
>
> These arrays were then used in other function using extern
>
> How should I do this in GNU radio ?
>
> Sumit
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



--
Sumit Kumar



reply via email to

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