dxapp.obj : error LNK2001: unresolved external symbol _c_dfDIKeyboard
dxapp.obj : error LNK2001: unresolved external symbol _GUID_SysKeyboard
dxapp.obj : error LNK2001: unresolved external symbol _DirectInput8Create@20
dxapp.obj : error LNK2001: unresolved external symbol _IID_IDirectInput8W
dxlibrary.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw7
dxlibrary.obj : error LNK2001: unresolved external symbol _DirectDrawCreate@12
DirectX Compile issues
Folks,
I have been busting butt on a tetris cloan, trying to learn DX etc.. I am nearing the end of my jouny and have hit a road block.
I can goto each of the above so called unresolved external symbols, right click and do a goto definition without a hitch. I am including the proper header files and have msvs setup to look in the right directories for the libs and headers of directx.
Can someone shed some light here please
-Ron
Edited by - ryacketta on March 30, 2002 10:35:19 PM
Tried searching lately?
---visit #directxdev on afternet <- not just for directx, despite the name
You must link ddraw.lib, dxguid.lib and dinput.lib.
Under MSVC, go to project settings->Link->output/library modules.
Under MSVC, go to project settings->Link->output/library modules.
Indirect,
wow you sure are a grumpy one. Not like I went and asked on some other non related channel! get over yourself already bubba gump
Pros,
Thanks! that was the trick, as well as adding dinput8.lib
wow you sure are a grumpy one. Not like I went and asked on some other non related channel! get over yourself already bubba gump
Pros,
Thanks! that was the trick, as well as adding dinput8.lib
Searching for "unresolved _IID_IDirectDraw7" gave me half a page worth of topics just in the DirectX forum. Why post when you can find the answer by yourself?
---visit #directxdev on afternet <- not just for directx, despite the name
Indirect;
I understand your point all to well, I was in a hurry to take the family out to dinner and thought to post and get a answer when I returned, but the answer came quicker than I imagned!
on to another issue I have. Looking at my code I would like to clean it up. I have this butt uglly array that I would like to reduce down to a STL vector (why? for my own education / exp)
the array looks like this (dont read any further if you have a weak coding stomahc )
I was thinking of doing
but have one issue, my initial array is a 4x and I am not totaly positive/confident of porting that to a vector.
can someone lend some possible solutions? maybe I dont need a 4x array? maybe some other configuration would work?
Regards,
Ron
[edited by - ryacketta on March 30, 2002 10:33:50 PM]
[edited by - ryacketta on March 30, 2002 10:35:01 PM]
[edited by - ryacketta on March 30, 2002 10:36:18 PM]
I understand your point all to well, I was in a hurry to take the family out to dinner and thought to post and get a answer when I returned, but the answer came quicker than I imagned!
on to another issue I have. Looking at my code I would like to clean it up. I have this butt uglly array that I would like to reduce down to a STL vector (why? for my own education / exp)
the array looks like this (dont read any further if you have a weak coding stomahc )
int shapes[7][4][4][2] = { { { {0,0},// ** {1,0},// ** {0,1}, {1,1} }, { {0,0},// ** {1,0},// ** {0,1}, {1,1} }, { {0,0},// ** {1,0},// ** {0,1}, {1,1} }, { {0,0},// ** {1,0},// ** {0,1}, {1,1} } }, { { {0,1},// {1,1},// *** {2,1},// * {1,2} }, { {1,0},// * {0,1},// ** {1,1},// * {1,2} }, { {1,0},// * {0,1},// *** {1,1}, {2,1} }, { {1,0},// * {1,1},// ** {2,1},// * {1,2} } }, { { {0,0},// ** {1,0},// ** {1,1}, {2,1} }, { {1,0},// * {0,1},// ** {1,1},// * {0,2} }, { {0,0},// ** {1,0},// ** {1,1}, {2,1} }, { {1,0},// * {0,1},// ** {1,1},// * {0,2} } }, { { {0,0},// *** {1,0},// * {2,0}, {2,1} }, { {2,0},// * {2,1},// * {1,2},// ** {2,2} }, { {0,1},// {0,2},// * {1,2},// *** {2,2} }, { {0,0},// ** {1,0},// * {0,1},// * {0,2} } }, { { {0,1}, {1,1},// **** {2,1}, {3,1} }, { {1,0},// * {1,1},// * {1,2},// * {1,3} // * }, { {0,1}, {1,1},// **** {2,1}, {3,1} }, { {1,0},// * {1,1},// * {1,2},// * {1,3} // * } }, { { {0,0},// *** {1,0},// * {2,0}, {0,1} }, { {1,0},// ** {2,0},// * {2,1},// * {2,2} }, { {2,1}, {0,2},// * {1,2},// *** {2,2} }, { {0,0},// * {0,1},// * {0,2},// ** {1,2} } }, { { {1,0},// ** {2,0},// ** {0,1}, {1,1} }, { {0,0},// * {0,1},// ** {1,1},// * {1,2} }, { {1,0},// ** {2,0},// ** {0,1}, {1,1} }, { {0,0},// * {0,1},// ** {1,1},// * {1,2} } }};
I was thinking of doing
clas cShapes { int x,y; int rotation; int type;}std::vector<cShapes> Shapes;
but have one issue, my initial array is a 4x and I am not totaly positive/confident of porting that to a vector.
can someone lend some possible solutions? maybe I dont need a 4x array? maybe some other configuration would work?
Regards,
Ron
[edited by - ryacketta on March 30, 2002 10:33:50 PM]
[edited by - ryacketta on March 30, 2002 10:35:01 PM]
[edited by - ryacketta on March 30, 2002 10:36:18 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement