简体   繁体   中英

VisualGDB SIGSEGV: Segmentation fault with C++ dev for Raspberry Pi

I just purchased the VisualGDB extension for Visual Studio Community Edition 2017 with the student discount. I have Ubuntu Mate installed and updated on my Raspberry Pi 3. The Pi 3 firmware is updated. Windows 10 on the laptop. Any which way you write simple C/C++ code to print to the screen, I receive SIGSEGV segmentation fault.
Screenshot of visual studio showing fault

#include <iostream>
using namespace std;

int main()
{
    cout << "Hello!\n";

    return 0;
}

Even this simple code does it too.

I have scoured Stackoverflow and google. Time to post.

Anyone have a clue as to what is happening and how to fix this?

Thanks Ladies and Guys.

The tool chain was not compatible with the target system image. You have to use EXACTLY that same SD card image as listed in the tool chain. http://gnutoolchains.com/raspberry/

Per the developer for VisualGDB. Answer to problem

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM