[Openal] compile trouble in anjuta
Dirk
noisyb at gmx.net
Fri Jun 22 04:56:38 PDT 2007
Damian Corrin wrote:
> undefined reference to alcOpenDevice. This is what i get when trying to
> compile a two liner in anjuta This is my code, and this is what is in
> the libraries section of configuration
> -lalut -lopenal
> I know this is simple boring stuff but it is a requirement that i have
> an ide for the rest of my project
> please help
> love and peace
> Damian Corrin
>
> #include <AL/al.h>
> #include <AL/alc.h>
> #include <AL/alext.h>
> //#include <AL/alut.h>
>
>
>
> int main()
> {
> // Initialization
> ALCdevice* device;
> device = alcOpenDevice(NULL); // select the "preferred device"
>
> std::cout << "Hello world" << std::endl;
> return 0;
> }
>
You may try to compile it from the commandline with
g++ <name_of_code>.c -o test -lopenal
and see if it complains, too.
If it does then something is missing.
If it does not then ur IDE is misconfigured.
Attaching the exact error message to the your next mail would help.
Dirk
More information about the Openal
mailing list