ALUT Linker Error

closed account (2NywAqkS)
I have linked the compiler (MVC 2010 Express) to a OpenAL32.lib and an alut.lib however when I compile:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdlib.h>
#include <AL/alut.h>

int
main (int argc, char **argv)
{
  ALuint helloBuffer, helloSource;
  alutInit (&argc, argv);
  helloBuffer = alutCreateBufferHelloWorld ();
  alGenSources (1, &helloSource);
  alSourcei (helloSource, AL_BUFFER, helloBuffer);
  alSourcePlay (helloSource);
  alutSleep (1);
  alutExit ();
  return EXIT_SUCCESS;
}


I get these errors:


Error	4	error LNK1120: 3 unresolved externals	E:\Programming\Projects\Ring\ALUT\Debug\ALUT.exe	1	1	ALUT
Error	3	error LNK2019: unresolved external symbol __imp__alGenSources referenced in function _main	E:\Programming\Projects\Ring\ALUT\ALUT\main.obj	ALUT
Error	2	error LNK2019: unresolved external symbol __imp__alSourcei referenced in function _main	E:\Programming\Projects\Ring\ALUT\ALUT\main.obj	ALUT
Error	1	error LNK2019: unresolved external symbol __imp__alSourcePlay referenced in function _main	E:\Programming\Projects\Ring\ALUT\ALUT\main.obj	ALUT


any help is much apriciated
closed account (S6k9GNh0)
Be sure you're linking to the correct library. I'm almost certain its something you're doing wrong while linking.
libopenal perhaps, or whatever it's called under Win.
closed account (2NywAqkS)
I just had to reinstall all the .lib files.
Topic archived. No new replies allowed.