|
From: Philip B. <phi...@pb...> - 2007-02-07 01:00:00
|
Hey everyone, I am trying to compile a program that uses Direct input 8, and I believe = that I have done everything correctly, but the linker will not include = dinput8.lib for some reason. I am using the Microsoft Direct X October = SDK release from 2006, so there should be no problem what so ever. It is = finding the file, that's for sure, but it is giving me a strange error = that I can't for the life of me figure out how to solve. The log is = below. Compiler: Default compiler Building Makefile: "C:\C++ tests\Direct input\Makefile.win" Finding dependencies for file: C:\C++ tests\Direct input\Direct = input.cpp Executing make... make.exe -f "C:\C++ tests\Direct input\Makefile.win" all g++.exe -c "Direct input.cpp" -o "Direct input.o" = -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" = -I"C:/Dev-Cpp/include/c++/3.4.2/backward" = -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" = -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" =20 g++.exe "Direct input.o" -o "Direct input.exe" -L"C:/Dev-Cpp/lib" = -mwindows dxguid.lib dinput8.lib =20 Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" ' = unrecognized Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" ' = unrecognized Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" ' = unrecognized Direct input.o(.text+0x39):Direct input.cpp: undefined reference to = `DirectInput8Create@20' collect2: ld returned 1 exit status make.exe: *** ["Direct] Error 1 Execution terminated I simply can't make any sense out of it. Can anyone help? Thanks in advance. Regards Philip Bennefall |