Skip to main content
Hanya
Associate
May 8, 2023
Question

While studying the official example project, I found that the functions defined in the.c file were not found in int main()

  • May 8, 2023
  • 1 reply
  • 1213 views

Recently, I have an Audio_playback_and_record project to understand the use of ST MEMS microphone. My purpose is to understand the running order of the functions defined in waverecorder.c, but I find that int main() can not find the function defined in waverecorder.c file. And the main function also has acceleration sensor content, which makes me very confused

The main program is as follows:


_legacyfs_online_stmicro_images_0693W00000bjY6zQAE.pngI also upload the project

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
May 8, 2023

What's the error reported?

From compiler or linker?

Compiler, check you have prototypes.

Linker, that the code containing the functions is built and liked.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Hanya
HanyaAuthor
Associate
May 8, 2023

Thanks for your reply!

The program compiled with no errors, I just want to knowthe running order of the functions defined in waverecorder.c