Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6180

fcntl2.h and unistd.h error when I ctrl + leftclick into the open() or read() function(it is into function definition)

$
0
0
  • 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

my try:

  1. 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"

  2. Reinstalling the system on orangepi3b(ubuntu 20.04)


Viewing all articles
Browse latest Browse all 6180

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>