2022-11-24から1日間の記事一覧
とあるi2cを使うcコードでコンパイル警告とリンクエラーが出た。 コンパイル警告 warning: implicit declaration of function ‘i2c_smbus_write_byte_data’ warning: implicit declaration of function ‘i2c_smbus_read_byte’ リンクエラー undefined refere…
何エラーか良くわからんかったが、どうやら std::istringstreamを使うには<sstream>が必要、ということだった。 ヘッダをインクルードしたら解決した。 error: variable ‘std::istringstream in’ has initializer but incomplete type std::istringstream hoge(fuga);</sstream>…
(Debian 10 busterで確認) //rootに移行 $ su rootのパスワード //sudoを入れる # apt-get install sudo //特定ユーザーを追加する # visudo > ユーザー名 ALL=(ALL:ALL) ALL ctrl+x で保存 //使えるよになったか確認する # exit $ sudo -v