Jump to content

C/C++ Beispielprogramm mit Makefile kompilieren klappt nicht


Guest Achsdrian

Recommended Posts

Guten Abend

 

Ich bin nun auch in der Welt von Tinkerforge gelandet.

 

Ich teste seit gestern den RED Brick. Leider scheitere ich bereits beim hochladen und ausführen eines simplen Testprogramms  :(

 

Dazu habe ich mir das Beispielprogramm zum Piezo Speaker geholt (example_beep.c).

Ich habe das Makefile entsprechend angepasst und das ganze hochgeladen.

Bereits beim hochladen erhielt ich die Meldung, dass das Programm nicht kompilliert werden konnte.

 

Im Log finde ich folgendes:

 

2016-02-11T03:06:54.744519+0100

-------------------------------------------------------------------------------

./example_beep.c: line 2: $'\r': command not found

./example_beep.c: line 5: $'\r': command not found

./example_beep.c: line 9: $'\r': command not found

./example_beep.c: line 10: syntax error near unexpected token `('

./example_beep.c: line 10: `int main(void) {

'

 

 

Was mache ich falsch?

Danke für die Hilfe.

 

Gruss

 

edit: Beim compilieren mit dem Makefile wird folgendes ausgegeben: Makefile:13: *** missing separator (did you mean TAB instead of 8 spaces?).  Stop.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...