Welcome, Guest
Username: Password: Remember me

TOPIC: Compile error with clean.c

Compile error with clean.c 2 months 3 weeks ago #1618

  • spallg1
  • spallg1's Avatar
  • OFFLINE
  • New Member
  • Posts: 4
  • Thank you received: 3
  • Karma: 2
Hi-pedal pi newbie trying to compile clean.c and am getting a couple errors, hoping someone can help.

Compile error reads “pointer targets in passing argument 1 of ‘bcm2835_spi_tranfernb’ differ in signedness [-wpointer-sign]”. Looks like the compiler is expecting char* but is getting uint8* (aka unsigned char*). There are 4 instances of this error, and one about an unused variable ‘PUSH1_val’, which may or may not be related.

I’m using geany v1.29, bcm library v1.50 and can compile the examples spi.c and blink.c.

Any suggestions appreciated.

Thanks, Graham
The administrator has disabled public write access.

Compile error with clean.c 2 months 3 weeks ago #1620

  • spallg1
  • spallg1's Avatar
  • OFFLINE
  • New Member
  • Posts: 4
  • Thank you received: 3
  • Karma: 2
So if the compiler says it wants a char, give it a char! Changed miso and MOSI to chars and it compiles just fine.

The unused variable was a declaration for the pb switches which are not used in the clean effect (go figure).

Hopefully some info that others find useful. Guess I am 24hrs cleverer than I was then!
The administrator has disabled public write access.

Compile error with clean.c 2 months 3 weeks ago #1623

  • Ray
  • Ray's Avatar
  • OFFLINE
  • Platinum Member
  • Posts: 575
  • Thank you received: 133
  • Karma: 32
Thanks for sharing your issue. Its weird to have any compiler problem because all the codes are verified and checked. The usual problem is to have the BCM2835 not properly installed, using the image file of the OS that we have online fix all the problems (so far).
I will stay tuned to see if anything else like this appears again.
Last Edit: 2 months 3 weeks ago by Ray.
The administrator has disabled public write access.
Time to create page: 0.111 seconds
Powered by Kunena Forum
Joomla SEF URLs by Artio