E
E
Eugene2022-03-07 16:54:18
Visual Studio Code
Eugene, 2022-03-07 16:54:18

How to make the editor connect libraries from a network folder?

I started writing a small program for the Raspberry PI, of course, since the program was for it, I created a working directory there, shared it within the network through a samba server and got to work. But I ran into a problem in the most unexpected place.
When connecting STL libraries, there are no problems. When working on a computer, VCcode sucks them from the computer, and when compiling on raspberry, the compiler sucks libraries from raspberry there. All is well, everyone is happy.
But when you try to connect, for example, mysql.h, it is logical that VCcode cannot find the file and constantly highlights the error that it cannot find the source file and, as a result, all functions are also highlighted as missing.
Actually, the question is, can I somehow explain to the editor that he is looking for libraries not on a computer, but on a raspberry? Do not install a damn database for me just for the sake of reassuring VCcode!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2022-03-08
@jenya92

While searching for a solution, I came across this article: https://habr.com/en/post/454280/
An excellent solution to the problem. Just installed the extension, connected to raspberry via ssh directly from VScode and no problems. If anyone also encounters such a problem, install the extension according to these instructions: https://code.visualstudio.com/docs/remote/ssh

A
Adamos, 2022-03-07
@Adamos

You connect the network directory as a drive (by assigning a letter), if in Windows.
You mount the folder if in line.
And you prescribe VSC includePath.
True, when linking, it will need libraries compiled for the target platform.
And they probably won't be on Malinka.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question