Ошибка fcntl2.h и unistd.h, когда я Ctrl + щелчок левой кнопкой мыши в функции open() или read() (она находится в опредеC++

Программы на C++. Форум разработчиков
Ответить Пред. темаСлед. тема
Anonymous
 Ошибка fcntl2.h и unistd.h, когда я Ctrl + щелчок левой кнопкой мыши в функции open() или read() (она находится в опреде

Сообщение Anonymous »

  • env: I use vscode ssh remote plug-in link ubuntu20.04(it run in orangepi3b, I don't know if that's the problem.)
  • question:
    1.1 when I ctrl + mouse leftclick, after clicking open() function is not into usr/include/fcntl.h function declaration, but into usr/include/aarch64-linux-gnu/bits/fcntl2.h function definition.
    1.2 read() function also into usr/include/aarch64-linux-gnu/bits/unistd.h function definition.
    1.3 open() and read() can show the smart tip.The truncate()function does not have a smart tip.

All the code I've written compiles with gcc and it can run.
how to solve these question.
  • this is my c_cpp_properties.json:

{ "configurations": [ { "name": "Linux", "includePath": [ // "/usr/include", // "/usr/include/aarch64-linux-gnu", "${workspaceFolder}/**" ], "browse": { "path": [ // "/usr/include", // "/usr/include/aarch64-linux-gnu", "${workspaceFolder}/**" ] // "limitSymbolsToIncludedHeaders": true }, "defines": [], "compilerPath": "/usr/bin/gcc", "cStandard": "c11", "cppStandard": "c++17", "intelliSenseMode": "linux-gcc-x64" } ], "version": 4 } c_cpp_properties.json
  • using truncate(): using truncate()
  • using read(): using read()
  • this is the error: open() error read() error

my try:
  • Modify includePath, browse.path, compilerPath, intelliSenseMode in c_cpp_properties.json.
    1.1 includePath and browse.path to add the paths that have been commented out.
    1.2 intelliSenseMode change to "linux-gcc-x64", "linux-gcc-arm64", "linux-gcc-x86", "linux-gcc-arm".
    1.3 compilerPath to "aarch64-linux-gnu-gcc"
  • Reinstalling the system on orangepi3b(ubuntu 20.04)


Источник: https://stackoverflow.com/questions/780 ... or-read-fu
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «C++»