discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] UHD compiling under Windows, invalid vector<T> error


From: Seth Hollar
Subject: [Discuss-gnuradio] UHD compiling under Windows, invalid vector<T> error
Date: Mon, 19 Nov 2012 11:49:33 -0500
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2

Hi,
This is mostly a UHD questions.

I have taken the source code of UHD and compiled with the CMAKE option under Windows 7 using Visual Studio 2010 with Boost 1.51.

Some of the examples (rx_timed_samples and tx_timed_samples) do not work right giving an "invalid vector<T> subscript" error when run.

However, when I add the compile option /Zi (Debug Program information, Program Database (/Zi)), then they seem to work. 

Thanks,
Seth


example without /Zi

C:\uhd\host\build\examples\Release>tx_timed_samples

Win32; Microsoft Visual C++ version 10.0; Boost_105100; UHD_003.004.004-255-g4c2
254b9


Creating the usrp device with: ...
-- Opening a USRP2/N-Series device...
-- Current recv frame size: 1472 bytes
-- Current send frame size: 1472 bytes
-- Creating WSA UDP transport for 192.168.10.2:49156
-- Creating WSA UDP transport for 192.168.10.2:49158
-- Creating WSA UDP transport for 192.168.10.2:49157
-- Creating WSA UDP transport for 192.168.10.2:49159
Error: invalid vector<T> subscript


example with /Zi

C:\uhd\host\build\examples\Release>tx_timed_samples.exe
Win32; Microsoft Visual C++ version 10.0; Boost_105100; UHD_003.004.004-255-g4c2
254b9


Creating the usrp device with: ...
-- Opening a USRP2/N-Series device...
-- Current recv frame size: 1472 bytes
-- Current send frame size: 1472 bytes
-- Creating WSA UDP transport for 192.168.10.2:49156
-- Creating WSA UDP transport for 192.168.10.2:49158
-- Creating WSA UDP transport for 192.168.10.2:49157
-- Creating WSA UDP transport for 192.168.10.2:49159
Using Device: Single USRP:
  Device: USRP2 / N-Series Device
  Mboard 0: N210r4
  RX Channel: 0
    RX DSP: 0
    RX Dboard: A
    RX Subdev: SBXv3 RX
  TX Channel: 0
    TX DSP: 0
    TX Dboard: A
    TX Subdev: SBXv3 TX

Setting TX Rate: 6.250000 Msps...
Actual TX Rate: 6.250000 Msps...

Setting device timestamp to 0...
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 363 samples
Sent packet: 199 samples

Waiting for async burst ACK... success

Done!

reply via email to

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