I'm trying to make a simple DirectX program, and i have a window up so far but when I when to declare the keyboard input, and when I try to us the DirectInput8Create() and the IID_IDirectInput8
constant I get this error.
I have the dinput8.lib and ddraw.lib linked. I got frustrated so I began to work on the save system, and when I try to use mmioOpen() to open my file, I get this error
[Linker error] undefined reference to `mmioOpenA@12'
and I have the winmm.lib linked.
what am I doing wrong? am I just not linking libraries properly?
I'm using Dev C++ 4.9.9.2 BTW
after adding the dguid.lib I removed the error
[Linker error] undefined reference to `IID_IDirectInput8A'
but kept the DirectInput8Create error and gained this error
You cannot use Microsoft's SDK directly with Dev-C++. Use this: http://www.devpaks.org/details.php?devpak=136 Personally I think that this package probably contravenes Microsoft's licences, but I'll leave that for you to consider. It is probably simpler to just use Microsoft's free tools, and you won't get left behind on DirectX updates.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Start by posting your Basic 3, they are covered in the thread titled (NOT accidentally) "Please Read Before Posting a Question"
Now, you do realize that libraries that are called something.lib are usually not the right library to work with MinGW/GCC? (they are named libsomething.a)
Where did you get the DirectX stuff from? Libraries compiled by and for Visual C++ will almost never work directly with MinGW/GCC.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to make a simple DirectX program, and i have a window up so far but when I when to declare the keyboard input, and when I try to us the DirectInput8Create() and the IID_IDirectInput8
constant I get this error.
[Linker error] undefined reference to
IID_IDirectInput8A' [Linker error] undefined reference to
DirectInput8Create@20'I have the dinput8.lib and ddraw.lib linked. I got frustrated so I began to work on the save system, and when I try to use mmioOpen() to open my file, I get this error
[Linker error] undefined reference to `mmioOpenA@12'
and I have the winmm.lib linked.
what am I doing wrong? am I just not linking libraries properly?
I'm using Dev C++ 4.9.9.2 BTW
after adding the dguid.lib I removed the error
[Linker error] undefined reference to `IID_IDirectInput8A'
but kept the DirectInput8Create error and gained this error
.drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" ' unrecognized
and as far as I can tell there is no uuid.lib in my SDK
You cannot use Microsoft's SDK directly with Dev-C++. Use this: http://www.devpaks.org/details.php?devpak=136 Personally I think that this package probably contravenes Microsoft's licences, but I'll leave that for you to consider. It is probably simpler to just use Microsoft's free tools, and you won't get left behind on DirectX updates.
Start by posting your Basic 3, they are covered in the thread titled (NOT accidentally) "Please Read Before Posting a Question"
Now, you do realize that libraries that are called something.lib are usually not the right library to work with MinGW/GCC? (they are named libsomething.a)
Where did you get the DirectX stuff from? Libraries compiled by and for Visual C++ will almost never work directly with MinGW/GCC.
Wayne