Welcome, Guest
Username: Password: Remember me

TOPIC: Error when compiling code

Error when compiling code 11 months 3 weeks ago #1388

  • Kuppet
  • Kuppet's Avatar
  • OFFLINE
  • New Member
  • Posts: 12
  • Thank you received: 3
  • Karma: 1
Whenever I compile a Pedal-Pi-All-Effects code, I come across this message:
gcc: error: rt: No such file or directory
gcc: error: rt: bcm2835: No such file or directory
gcc: error: unrecognized command line option -1
gcc: error: unrecognized command line option -1
The administrator has disabled public write access.

Error when compiling code 11 months 3 weeks ago #1390

  • Ray
  • Ray's Avatar
  • OFFLINE
  • Moderator
  • Posts: 615
  • Thank you received: 138
  • Karma: 38
Hi, could you tell us which compiling options are you using?
are you doing: gcc -o example -l rt example.c -l bcm2835 ?
The administrator has disabled public write access.

Error when compiling code 11 months 3 weeks ago #1392

  • Kuppet
  • Kuppet's Avatar
  • OFFLINE
  • New Member
  • Posts: 12
  • Thank you received: 3
  • Karma: 1
Yes

PS: I also downloaded the Raspbian Jessie from this page: www.electrosmash.com/forum/pedal-pi/202-...ing-pedal-pi?lang=en

Am I missing any steps?
The administrator has disabled public write access.

Error when compiling code 11 months 3 weeks ago #1393

  • Ray
  • Ray's Avatar
  • OFFLINE
  • Moderator
  • Posts: 615
  • Thank you received: 138
  • Karma: 38
Hi, I am trying to reproduce your issue here, but so far I am not able to.
Anyway, dont worry we will figure this out.

So, are you using the Operating System image that we uploaded to Mega.nz? If you are using it, it is the best way to do it as this image has the Bcm2835 libraries already installed.

In the OS, just go to the pedalSHIELD effects folder and use the gcc command: gcc -o example -l rt example.c -l bcm2835

make sure that the commmand is right: l is an "L“ from "library" not a capital "i", etc...
Last Edit: 11 months 3 weeks ago by Ray.
The administrator has disabled public write access.
The following user(s) said Thank You: Kuppet
Time to create page: 0.101 seconds
Powered by Kunena Forum
Joomla SEF URLs by Artio