Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
35 views

Client-Server Connection Timeout in WSL

I am working on a project where I have a TCP server running inside WSL2 on a Windows machine, and I'm trying to connect to this server from a client running on another machine on the same local ...
Carlos Valeriano's user avatar
1 vote
0 answers
52 views

VSCode on wsl2 cant find gcc/g++

I try to run a .c with vscode on a wsl environment. I have both gcc and g++ installed. I verified that on a vscode terminal as explained in the guide. Í also have all the necessary extensions ...
proton's user avatar
  • 411
0 votes
0 answers
51 views

Font rendering issue in c++ applcation on WSL with Qt6

I'm developing a C++ application using Qt6 on WSL, using Ubuntu 22.04. This application prints braille characters to the screen when when clicking and dragging in the canvas. The problem is the ...
Leo Boeri's user avatar
1 vote
0 answers
66 views

SDL2 Window won't show

I am trying to follow a tutorial that creates a blank window that can be closed using the Esc button, but the window never shows. This is on WSL running Ubuntu 20.05.6 The code compiles and runs ...
lnz43090's user avatar
0 votes
0 answers
48 views

Integrating concorde tsp solver on Windows C++ Visual Studio x64 project

We are attempting to integrate the Concorde TSP solver in our Windows x64 C++ Visual Studio project. We have tried for two days now. Without luck. We don't understand how to do it, or if it is even ...
Smile's user avatar
  • 33
0 votes
0 answers
52 views

building a text editor with C++ and the cursor doesn't want to move

I'm a beginner so please don't go too harsh on me, I've been following a tutorial that a friend of mine gave for building a text editor with C++ on WSL, I've already built the functionalities for the ...
Michael Kraiton's user avatar
1 vote
0 answers
27 views

mknod() not creating an S_IFIFO pipe, WSL2

I'm trying to create an S_IFIFO pipe with mknod(file, S_IFIFO | 0600, 0). It's failing with errno 95 (Operation not supported) Code: #include <stdio.h> #include <stdlib.h> #include <...
sorceror's user avatar
0 votes
0 answers
28 views

readline on wsl cpp stops input from showing after stopping run via vscode interface

My setup includes WSL with Ubuntu, and I'm using Visual Studio Code as my work environment and coding in cpp 17. I've encountered the following issue: whenever I stop the program from running via the ...
Flyleaf's user avatar
  • 39
0 votes
0 answers
192 views

#include <unistd.h> doesn't work in visual studio code in Windows

I tried to include this library to allow fork(), exec() and pipe() commands. Unfortunately, this error message is displayed: #inclusion errors detected. Update the inclusion path. Squiggles are ...
Francesco Ardizzoni's user avatar
0 votes
0 answers
20 views

relocation R_X86_64_PC32 against symbol `timing_' can not be used when making a shared object

When I try to execute my project on a machine without arpack++, I encounter the error 'libarpack.so.2: cannot open shared object file.' I attempted to rebuild the project after uninstalling arpack++, ...
mchak's user avatar
  • 1
0 votes
1 answer
54 views

Error Building Proxygen (Networking Library) on Ubuntu 22.04.4, WSL

I'm following the instructions on Proxygen's github repository to build and install it. They say to just run ./build.sh in the proxygen directory. Once proxygen builds, I get errors that all say ...
TwistedBlizzard's user avatar
0 votes
1 answer
236 views

How do I resolve this OpenCV Installation error

I was trying to install OpenCV in my project, I followed the tutorial here. I'm running a Ubuntu 20.04.6 LTS on a WSL on Windows 10. The problem I'm encountering is during the make command in the ...
user24604957's user avatar
0 votes
1 answer
200 views

Why does the following program printf "thread 1 exists" twice in WSL2?

I am currently working with C++ multithreading on WSL2 and I've encountered something stumping. When running my program, I'm receiving duplicate printf output from a single thread. Below is the ...
Eadren King's user avatar
-1 votes
1 answer
72 views

VS Code can't find header files In Linux VSCode

My workspace is : ├── README.md └── sim ├── Makefile ├── include │ ├── add.cpp │ └── add.h │ └── src └── main.cpp My main.cpp is : // main.cpp #include <...
Chris's user avatar
  • 69
0 votes
0 answers
63 views

SDL is drawing the rectangle in some frames but a weird sliced rectangle in others

I'm trying to draw a basic rectangle using the SDL render API: #include <SDL2/SDL.h> #include <iostream> const int SCREEN_WIDTH = 1280; const int SCREEN_HEIGHT = 720; SDL_Window* gWindow ...
Evan Marsh's user avatar

15 30 50 per page
1
2 3 4 5
15