I've just made https://raw.githubusercontent.com/EttusResearch/uhd/master/host/examples/rx_samples_to_file.cpp work yesterday on VS2017, compiled in *Release* x86 (Debug version does not work, probably because we mix Debug and Release files), here's what I wrote down
- Unpack UHD somewhere http://files.ettus.com/binaries/uhd/latest_release/Windows7/uhd_3.12.0.0-release_Win32_VS2014.exe - in Project Properties > Configuration Properties > C/C++ > General, add the UHD *include* directory as well as boost root directory to *Additional Include Directories* - in Project Properties > Configuration Properties > Linker > General, add the UHD *lib* directory and boost *stage/lib* directory to *Additional Library Directories* - in Project Properties > Configuration Properties > Linker > Input, add *uhd.lib* and *libboost_thread-vc141-mt-gd-x32-1_67.lib* to *Additional Dependencies* HTH On Wed, Jul 18, 2018 at 8:41 PM Massimo Bastianon via USRP-users < [email protected]> wrote: > I'm struggling with an easy task: get USRP B200mini working with my code. > > I'm using windows 10 x64 and visual studio 2017, I downloded and compiled > boost 1.67.0 (both 32 and 64 bit). I used udh.dll from UHD 3.12.0.0 and > GNURadio-3.7. > > I followed the simple guide but it's not working, even this small piece > code gives me error: > > int UHD_SAFE_MAIN(int argc, char *argv[]) { > uhd::set_thread_priority_safe(); > > uhd::usrp::subdev_spec_t addr; // <-- exception > > } > > Exception thrown at 0x00007FF9A3321688 (uhd.dll) in > ConsoleApplicationTest2.exe: 0xC0000005: Access violation reading location > 0x000000AC70300000. > > Other softwares are working with my device but my code is not, maybe it > has an easy solution.. Did anyone already faced this issue? > _______________________________________________ > USRP-users mailing list > [email protected] > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >
_______________________________________________ USRP-users mailing list [email protected] http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
