Keil EFM8-Fehler C267 beheben: 'SLAB_ASSERT': requires ANSI-style prototype
English
Deutsch
Problem:
Sie möchten Ihre EFM8-Anwendung kompilieren, aber Sie sehen diese Fehlermeldungen:
efm8-errors.txt
*** WARNING C206 IN LINE 86 OF C:\SiliconLabs\SimplicityStudio\v4\developer\sdks\8051\v4.1.7\Device\EFM8BB3\peripheral_driver\src\adc_0.c: 'SLAB_ASSERT': missing function-prototype
*** ERROR C267 IN LINE 86 OF C:\SiliconLabs\SimplicityStudio\v4\developer\sdks\8051\v4.1.7\Device\EFM8BB3\peripheral_driver\src\adc_0.c: 'SLAB_ASSERT': requires ANSI-style prototypeLösung
Gehen Sie in die Projekteigenschaften (durch Rechtsklick auf Ihr Projekt oben links und Klick auf “Properties”)-> C/C++ Build -> Project Modules
Dort wählen Sie 8051 -> EFM8 aus und aktivieren Sie das Kontrollkästchen Assert, um das Assert-Modul einzubinden. Kompilieren Sie Ihr Modul nun neu.

If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow