- 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 clickingopen()
function is not intousr/include/fcntl.h
function declaration, but intousr/include/aarch64-linux-gnu/bits/fcntl2.h
function definition.
1.2read()
function also intousr/include/aarch64-linux-gnu/bits/unistd.h
function definition.
1.3open()
andread()
can show the smart tip.Thetruncate()
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}
using truncate():using truncate()
using read():using read()
this is the error:open() errorread() 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)