Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4997

Beginners • Re: Pigpio initialization error while try to run LoRa c codes

$
0
0
hm it totally don't work

I tried an other LIB

https://github.com/loraraspi91/LoRa4Raspi


But there re also problems


I"ve installed the Lib in

Code:

/etc/myFolder/Test
than I moved the .h documents to

Code:

/usr/lib
than I moved the files
LoRa.cpp
Print.cpp
WString.cpp
itoa.cpp

to the directory of the example script I want to compile

Code:

/etc/myFolder/LoRa4Raspi/examples/LoRaSender
thann i compile via console as root with

Code:

g++ -Wall -o LoRaSender LoRaSender.cpp LoRa.cpp Print.cpp WString.cpp itoa.cpp -lwiringPi
and I get an error message

Code:

/tmp/ccX1G32o.s: Assembler messages:/tmp/ccX1G32o.s:244: Error: unknown or missing system register name at operand 2 -- mrs x0,CPSR' /tmp/ccX1G32o.s:279: Error: unknown mnemonic cpsie' -- cpsie i' /tmp/ccX1G32o.s:312: Error: unknown mnemonic cpsid' -- `cpsid i'WString.cpp: In member function ‘String& String::operator=(String&&)’:WString.cpp:175:37: warning: ignoring return value of ‘constexpr typename std::remove_reference<_Tp>::type&& std::move(_Tp&&) [with _Tp = String&; typename remove_reference<_Tp>::type = String]’, declared with attribute ‘nodiscard’ [-Wunused-result]175 | if (this != &rval) std::move(rval);| ~~~~~~~~~^~~~~~In file included from /usr/include/c++/12/bits/exception_ptr.h:43,from /usr/include/c++/12/exception:168,from /usr/include/c++/12/ios:39,from /usr/include/c++/12/ostream:38,from /usr/include/c++/12/iostream:39,from /usr/include/WString.h:26,from WString.cpp:19:/usr/include/c++/12/bits/move.h:104:5: note: declared here104 | move(_Tp&& __t) noexcept| ^~~~WString.cpp: In member function ‘String& String::operator=(StringSumHelper&&)’:WString.cpp:181:37: warning: ignoring return value of ‘constexpr typename std::remove_reference<_Tp>::type&& std::move(_Tp&&) [with _Tp = StringSumHelper&; typename remove_reference<_Tp>::type = StringSumHelper]’, declared with attribute ‘nodiscard’ [-Wunused-result]181 | if (this != &rval) std::move(rval);| ~~~~~~~~~^~~~~~/usr/include/c++/12/bits/move.h:104:5: note: declared here104 | move(_Tp&& __t) noexcept| ^~~~
I don't know what this mean any idea?

Statistics: Posted by Mathrim — Fri Nov 08, 2024 10:11 am



Viewing all articles
Browse latest Browse all 4997

Trending Articles