From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
To: Daniel Viksporre <daniel.viksporre@gmail.com>,
Clemens Ladisch <clemens@ladisch.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: Rawmidi
Date: Mon, 28 Dec 2015 00:49:41 +0900 [thread overview]
Message-ID: <56800895.5070008@sakamocchi.jp> (raw)
In-Reply-To: <CAL_NL1Bgv8hoW-wR003jD4Wopc6udG=Xb+DJ8P+W5H5H9dQYnQ@mail.gmail.com>
On Dec 28 2015 00:22, Daniel Viksporre wrote:
> 2015-12-27 9:18 GMT+01:00, Clemens Ladisch <clemens@ladisch.de>:
>> Daniel Viksporre wrote:
>>> test.c:(.text+0x507): undefined reference to `snd_rawmidi_open'
>>
>> This message comes from the linker.
>>
>> If the compiler itself does not complain, then you have no
>> problem with rawmidi.h.
>>
>> The linker error is probably caused by not linking with the
>> ALSA library; add -lasound to the compiler command.
>>
>>
>> Regards,
>> Clemens
>>
>>
>
> I compiled with...
> gcc -lasound test.c
>
> I have tried with many different code examples that I have found on
> the internet, and error messages stays about the same.
I think cause is the position of linker option. Let's try:
$ gcc test.c -lasound
Regards
Takashi Sakamoto
next prev parent reply other threads:[~2015-12-27 15:49 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-27 6:29 Rawmidi Daniel Viksporre
2015-12-27 7:57 ` Rawmidi Takashi Sakamoto
2015-12-27 8:18 ` Rawmidi Clemens Ladisch
2015-12-27 15:22 ` Rawmidi Daniel Viksporre
2015-12-27 15:49 ` Takashi Sakamoto [this message]
2015-12-28 14:42 ` Rawmidi Rob van der Putten
2015-12-29 11:16 ` Rawmidi Rob van der Putten
-- strict thread matches above, loose matches on Subject: below --
2004-10-08 17:08 rawmidi Steve DeRosier
2004-10-09 9:41 ` rawmidi Clemens Ladisch
2004-10-08 16:12 rawmidi Steve DeRosier
2004-10-08 16:20 ` rawmidi Patrick Dumais
2004-10-08 15:26 rawmidi Patrick Dumais
2004-10-08 15:55 ` rawmidi Takashi Iwai
2004-10-08 16:18 ` rawmidi Clemens Ladisch
2004-10-08 19:13 ` rawmidi Lee Revell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56800895.5070008@sakamocchi.jp \
--to=o-takashi@sakamocchi.jp \
--cc=alsa-devel@alsa-project.org \
--cc=clemens@ladisch.de \
--cc=daniel.viksporre@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.