Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

digitalWrite(pttPin,LOW); returns error undefined reference to `digitalRead' #3

Open
UgoPoddine opened this issue Apr 28, 2022 · 0 comments

Comments

@UgoPoddine
Copy link

Hi Adolfo,

thank-you for the porting of WiringPI in ARM64 envirnment.
The basic use runs very well.
Unfortunately I'm, finding an issue in compiling a small C++ daemon that performs very basic WiringPI activity (e.g. setting GPIO....)
The 32bit version runs well, buy on the ARM64 system the same compiled version can not be executed due to ELF64 problem.
I have tryed to recompile in the 64bit environment, bur the compilation returns error undefined reference to `digitalRead'.
You porting has been installed on a PI3+ usind the .deb file.

Ant help appreciated
Best regards
Ugo

PS : full compilation log here below 👍

g++ -Wall pttdemonint.cpp -o pttdemon
/usr/bin/ld: /tmp/ccXrsHue.o: in function RTS2PTT()': pttdemonint.cpp:(.text+0xc): undefined reference to digitalRead'
/usr/bin/ld: pttdemonint.cpp:(.text+0x44): undefined reference to digitalWrite' /usr/bin/ld: pttdemonint.cpp:(.text+0x68): undefined reference to digitalWrite'
/usr/bin/ld: /tmp/ccXrsHue.o: in function main': pttdemonint.cpp:(.text+0x80): undefined reference to wiringPiSetup'
/usr/bin/ld: pttdemonint.cpp:(.text+0x94): undefined reference to pinMode' /usr/bin/ld: pttdemonint.cpp:(.text+0xa8): undefined reference to digitalWrite'
/usr/bin/ld: pttdemonint.cpp:(.text+0xbc): undefined reference to wiringPiISR' /usr/bin/ld: pttdemonint.cpp:(.text+0xc8): undefined reference to pinModeAlt'
collect2: error: ld returned 1 exit status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant