- 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