|
no Dinput.lib (msvs2008) |
RSwar01
Member #9,274
November 2007
|
according to the setup instruction from the allegro wiki for static linking alleg_s.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib ole32.lib dinput.lib ddraw.lib dxguid.lib winmm.lib dsound.lib some of the files were missing because i didn't had DirextX SDK however after downloading the DirextX SDK (dxsdk_november2007.exe) there is still 1 file missing: dinput.lib what do i need to do to get static linking to work? |
Milan Mimica
Member #3,877
September 2003
|
MS removed some libs from recent DXSDK. Use dx70_min.zip from http://www.liballeg.org/wip.html
-- |
RSwar01
Member #9,274
November 2007
|
solves the problem of the missing files i now get 21 errors Any ideas on how to solve them? 1>MSVCRT.lib(MSVCR80.dll) : error LNK2005: _realloc already defined in LIBCMT.lib(realloc.obj) |
torhu
Member #2,727
September 2002
|
Are you linking with alleg_s_crt.lib? alleg_s.lib wants msvcr80.dll, so you can't combine that with libcmt.lib. |
RSwar01
Member #9,274
November 2007
|
I don't now I'm following the instructions from the allegro wiki alleg_s.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib ole32.lib dinput.lib ddraw.lib dxguid.lib winmm.lib dsound.lib are the only libraries under additional dependencies after some testing: Static Release the file doesn't work on different pc's Static Release, Static Runtime the errors |
Milan Mimica
Member #3,877
September 2003
|
You you are using "Static Release, Static Runtime" then you have to link against alleg_s_crt.lib. And set a option in C/C++ -> Code Generation -> Runtime Library to (MT). (edited)
-- |
RSwar01
Member #9,274
November 2007
|
I'm using the MT option (its the different between he Static Release and Static Release options) and what do you mean with: |
torhu
Member #2,727
September 2002
|
Replace this: with this: |
RSwar01
Member #9,274
November 2007
|
It works. finally I'm ably to use my games on computers witout allegro or vs2008 instold thanks for the help |
|