(I'm on Ubuntu) I'm trying to run PortAudio examples, but I get a lot of errors (see below). I put the portaudio.h header file in the program directory. I have no idea about this. I think this is a linker error. Please, help!
/tmp/cc5EbTlT.o: In the main':
paex_record.c:(.text+0x37e): undefined reference to
Pa_Initialize 'paex_record.c function :(. text + 0x397): undefined link to Pa_GetDefaultInputDevice'
paex_record.c:(.text+0x3de): undefined reference to
Pa_GetDeviceInfo' paex_record.c :(. text + 0x436): undefined link to Pa_OpenStream'
paex_record.c:(.text+0x45a): undefined reference to
Pa_StartStream 'paex_record.c :(. text + 0x493): undefined link to Pa_Sleep'
paex_record.c:(.text+0x4c2): undefined reference to
Pa_IsStreamActive 'paex_record.c :( text + 0x4eb): undefined link to Pa_CloseStream'
paex_record.c:(.text+0x5fa): undefined reference to
Pa_GetDefaultOutputDevice' paex_record.c :(. Text + 0x641): undefined link to Pa_GetDeviceInfo'
paex_record.c:(.text+0x6b2): undefined reference to
Pa_OpenStream 'paex_record.c :(e + 0x) : undefined link to Pa_StartStream'
paex_record.c:(.text+0x71c): undefined reference to
Pa_Sleep 'paex_record.c :(. text + 0x728): undefined link to Pa_IsStreamActive'
paex_record.c:(.text+0x74e): undefined reference to
Pa_CloseStream' paex_record.c :(. text + 0x77d): undefined link to Pa_Terminate'
paex_record.c:(.text+0x7e5): undefined reference to
Pa_GetErrorText 'collect2: error: ld returned 1 exit status