discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Compilation Error of the sample code "tags_demo.c


From: Zhihong Luo
Subject: Re: [Discuss-gnuradio] Compilation Error of the sample code "tags_demo.cc"
Date: Wed, 3 Feb 2016 16:39:53 +0800

Hi Marcus,

Sorry, I was typing and accidentally sent it out the previous one... The code is 

#include<gnuradio/top_block.h>
#include<gnuradio/uhd/usrp_source.h>
#include<uhd/utils/safe_main.hpp>
#include <boost/make_shared.hpp>
#include <boost/thread/thread.hpp>
#include <boost/program_options.hpp>
#include <csignal>
#include <iostream>

namespace po = boost::program_options;
int UHD_SAFE_MAIN(int argc, char *argv[]){ std::string device_addr =" ";
gr::top_block_sptr tb = gr::make_top_block("tags_demo");
gr::uhd::usrp_source::sptr usrp_source = gr::uhd::usrp_source::make(device_addr, uhd::stream_args_t("fc32"));
}

Then I ran the command:
g++ tags.cpp -o tags -l boost_system

which ends up having errors:

undefined reference to gr::make_top_block, uhd::device_addr_t, gr::uhd::usrp_source and etc.

Thanks,
Zhihong Luo

On Wed, Feb 3, 2016 at 4:29 PM, Zhihong Luo <address@hidden> wrote:
Hi Marcus,

Of course. Here are the codes:



On Wed, Feb 3, 2016 at 4:13 PM, Marcus Müller <address@hidden> wrote:
Hi Zhihong Luo,

could you please rather share text than pictures of text, too small for reading?

Best regards,
Marcus


On 03.02.2016 07:31, Zhihong Luo wrote:
Hi all,

I just started to learn to use c++ for gnuradio, and I copied some codes from the "tags_demo.cc". But compilation error occurred as shown in the following screen shots. Can you tell me where I made a mistake?

Thanks,
Zhihong Luo

Inline image 4

Inline image 2
Inline image 3


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




reply via email to

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