libcdio-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libcdio-help] Undefined references on compilation


From: Trevor Vallender
Subject: [Libcdio-help] Undefined references on compilation
Date: Mon, 09 Aug 2010 22:22:47 +0100

Sorry this is a bit of a basic question I think, but I'm using libcdio
in my first real C app.

I am trying to compile the second example from the documentation, have
used #include <cdio/cdio.h>, but when I compile I receive:

/tmp/ccGMMKAB.o: In function `main':
cdio.c:(.text+0x19): undefined reference to `cdio_open'
cdio.c:(.text+0x30): undefined reference to `cdio_get_driver_name'
cdio.c:(.text+0x4d): undefined reference to `cdio_get_default_device'
cdio.c:(.text+0x6a): undefined reference to `cdio_destroy'
cdio.c:(.text+0x8e): undefined reference to `cdio_have_driver'
cdio.c:(.text+0x9e): undefined reference to `cdio_driver_describe'
cdio.c:(.text+0xbd): undefined reference to `cdio_driver_describe'
collect2: ld returned 1 exit status

What am I doing wrong? Is there some extra option I must pass to gcc?

Regards,
Trevor Vallender





reply via email to

[Prev in Thread] Current Thread [Next in Thread]