Sign up
Login
New
Trending
Archive
English
English
Sign up
Login
New Paste
Add Image
make g++ -Wall -std=c++11 -o ano_encoder_test main.cpp ano_encoder.cpp g++ -Wall -std=c++11 -o test_diagnostic test_diagnostic.cpp ano_encoder.cpp g++ -Wall -std=c++11 -o test_encoder_only test_encoder_only.cpp ano_encoder.cpp g++ -Wall -std=c++11 -o test_i2c_raw test_i2c_raw.cpp test_i2c_raw.cpp: In function ‘int main()’: test_i2c_raw.cpp:33:5: error: ‘uint8_t’ was not declared in this scope 33 | uint8_t cmd[2] = {0x00, 0x02}; | ^~~~~~~ test_i2c_raw.cpp:8:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ 7 | #include <iomanip> +++ |+#include <cstdint> 8 | test_i2c_raw.cpp:34:23: error: ‘cmd’ was not declared in this scope 34 | if (write(i2c_fd, cmd, 2) != 2) { | ^~~ test_i2c_raw.cpp:43:12: error: expected ‘;’ before ‘version_buf’ 43 | uint8_t version_buf[4]; | ^~~~~~~~~~~~ | ; test_i2c_raw.cpp:44:22: error: ‘version_buf’ was not declared in this scope 44 | if (read(i2c_fd, version_buf, 4) != 4) { | ^~~~~~~~~~~ test_i2c_raw.cpp:50:5: error: ‘uint32_t’ was not declared in this scope 50 | uint32_t version = ((uint32_t)version_buf[0] << 24) | ((uint32_t)version_buf[1] << 16) | | ^~~~~~~~ test_i2c_raw.cpp:50:5: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ test_i2c_raw.cpp:52:13: error: expected ‘;’ before ‘product_id’ 52 | uint32_t product_id = (version >> 16) & 0xFFFF; | ^~~~~~~~~~~ | ; test_i2c_raw.cpp:54:49: error: ‘version’ was not declared in this scope 54 | std::cout << "✓ Version: 0x" << std::hex << version << std::dec << std::endl; | ^~~~~~~ test_i2c_raw.cpp:55:38: error: ‘product_id’ was not declared in this scope 55 | std::cout << "✓ Product ID: " << product_id << std::endl; | ^~~~~~~~~~ test_i2c_raw.cpp:65:12: error: expected ‘;’ before ‘enable_cmd’ 65 | uint8_t enable_cmd[3] = {0x11, 0x10, 0x01}; | ^~~~~~~~~~~ | ; test_i2c_raw.cpp:66:23: error: ‘enable_cmd’ was not declared in this scope 66 | if (write(i2c_fd, enable_cmd, 3) != 3) { | ^~~~~~~~~~ test_i2c_raw.cpp:76:12: error: expected ‘;’ before ‘set_pos_cmd’ 76 | uint8_t set_pos_cmd[6] = {0x11, 0x00, 0x00, 0x00, 0x00, 0x00}; | ^~~~~~~~~~~~ | ; test_i2c_raw.cpp:77:23: error: ‘set_pos_cmd’ was not declared in this scope 77 | if (write(i2c_fd, set_pos_cmd, 6) != 6) { | ^~~~~~~~~~~ test_i2c_raw.cpp:96:16: error: expected ‘;’ before ‘read_cmd’ 96 | uint8_t read_cmd[2] = {0x11, 0x00}; | ^~~~~~~~~ | ; test_i2c_raw.cpp:97:27: error: ‘read_cmd’ was not declared in this scope 97 | if (write(i2c_fd, read_cmd, 2) == 2) { | ^~~~~~~~ test_i2c_raw.cpp:100:20: error: expected ‘;’ before ‘pos_buf’ 100 | uint8_t pos_buf[4]; | ^~~~~~~~ | ; test_i2c_raw.cpp:101:30: error: ‘pos_buf’ was not declared in this scope 101 | if (read(i2c_fd, pos_buf, 4) == 4) { | ^~~~~~~ make: *** [Makefile:21: test_i2c_raw] Error 1
Settings
Title :
[Optional]
Paste Folder :
[Optional]
Select
Syntax :
[Optional]
Select
Markup
CSS
JavaScript
Bash
C
C#
C++
Java
JSON
Lua
Plaintext
C-like
ABAP
ActionScript
Ada
Apache Configuration
APL
AppleScript
Arduino
ARFF
AsciiDoc
6502 Assembly
ASP.NET (C#)
AutoHotKey
AutoIt
Basic
Batch
Bison
Brainfuck
Bro
CoffeeScript
Clojure
Crystal
Content-Security-Policy
CSS Extras
D
Dart
Diff
Django/Jinja2
Docker
Eiffel
Elixir
Elm
ERB
Erlang
F#
Flow
Fortran
GEDCOM
Gherkin
Git
GLSL
GameMaker Language
Go
GraphQL
Groovy
Haml
Handlebars
Haskell
Haxe
HTTP
HTTP Public-Key-Pins
HTTP Strict-Transport-Security
IchigoJam
Icon
Inform 7
INI
IO
J
Jolie
Julia
Keyman
Kotlin
LaTeX
Less
Liquid
Lisp
LiveScript
LOLCODE
Makefile
Markdown
Markup templating
MATLAB
MEL
Mizar
Monkey
N4JS
NASM
nginx
Nim
Nix
NSIS
Objective-C
OCaml
OpenCL
Oz
PARI/GP
Parser
Pascal
Perl
PHP
PHP Extras
PL/SQL
PowerShell
Processing
Prolog
.properties
Protocol Buffers
Pug
Puppet
Pure
Python
Q (kdb+ database)
Qore
R
React JSX
React TSX
Ren'py
Reason
reST (reStructuredText)
Rip
Roboconf
Ruby
Rust
SAS
Sass (Sass)
Sass (Scss)
Scala
Scheme
Smalltalk
Smarty
SQL
Soy (Closure Template)
Stylus
Swift
TAP
Tcl
Textile
Template Toolkit 2
Twig
TypeScript
VB.Net
Velocity
Verilog
VHDL
vim
Visual Basic
WebAssembly
Wiki markup
Xeora
Xojo (REALbasic)
XQuery
YAML
HTML
Expiration :
[Optional]
Never
Self Destroy
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Status :
[Optional]
Public
Unlisted
Private (members only)
Password :
[Optional]
Description:
[Optional]
Tags:
[Optional]
Encrypt Paste
(
?
)
Create Paste
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Site Languages
×
English