Category : visual-studio-code

undefined reference to `[email protected]′ collect2.exe: error: ld returned 1 exit status That keeps coming everytime I try to run the code My code is as follows: #include <iostream> using namespace std; int menu() { int numone; int numtwo; int sum; int difference; int quiotent; int mod; cout << "Enter number one: "; cin >> numone; ..

Read more

I am trying to debug a c++ file on wsl in vscode, the debugger is gdb. Here is my launch.json: { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "(gdb) Launch", "type": "cppdbg", "request": "launch", ..

Read more

I’m trying to use vscode with raspberry pi but have no success. The problem seems to be something with the libraries path. But I havent been able to fix that ! I’m on raspbian. #include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (/home/pi/pico/pico-examples/blink/main.c).C/C++(1696) Source: Windows Que..

Read more

Problem I cannot link a header file to its corresponding source file in visual studio code. Could someone please tell me how I can achieve this? Error message: C:/Programming/C++/Projects/Implementations/Vector/main.cpp:6: undefined reference to custom::vector::vector() C:/Programming/C++/Projects/Implementations/Vector/main.cpp:6: undefined reference to `custom::vector::~vector() What I have Tried I had manually tried to build in the terminal by using: g++ main.cpp ..

Read more