linking error!
-
:confused:Hi everyong! there are some errors when linking as: Linking... DSRecord.obj : error LNK2001: unresolved external symbol _DSDEVID_DefaultCapture DSRecord.obj : error LNK2001: unresolved external symbol _IID_IDirectSoundCaptureBuffer8 DSRecord.obj : error LNK2001: unresolved external symbol _IID_IDirectSoundNotify Debug/MyDS.exe : fatal error LNK1120: 3 unresolved externals I know that maybe some .lib file haven't been added to the project,but i do have linked "dsound.h" and "dsound.lib" How can I solve it? Thank you so much!
-
:confused:Hi everyong! there are some errors when linking as: Linking... DSRecord.obj : error LNK2001: unresolved external symbol _DSDEVID_DefaultCapture DSRecord.obj : error LNK2001: unresolved external symbol _IID_IDirectSoundCaptureBuffer8 DSRecord.obj : error LNK2001: unresolved external symbol _IID_IDirectSoundNotify Debug/MyDS.exe : fatal error LNK1120: 3 unresolved externals I know that maybe some .lib file haven't been added to the project,but i do have linked "dsound.h" and "dsound.lib" How can I solve it? Thank you so much!
its a bit hard to jump in on this when you've posted very little .. ok, if you can guarantee that those 3 functions are in dsound.lib (ie, they are declared in the header file dsound.h), then, the linker isnt finding dsound.lib - there are a number of ways to make sure it finds it .. 1) (MSVC 6) select tools -> options -> directories, (show directories for [library files]), add an entry for the directory where dsound.lib is or 2) select project -> settings -> link [category = input] add the path to the 'Additional Library path' box ... if those functions are NOT in dsound.lib, then you have to figure out where they come from, and (possibly) include that library .. if you can find a working example that comes with a workspace, you can often go though the settings and figure out 'what else' you need If its a COM component, the method will be different, sorry - you may need to do whats known as 'importing a type library' using a #import directive hope this helps a little 'g'
-
:confused:Hi everyong! there are some errors when linking as: Linking... DSRecord.obj : error LNK2001: unresolved external symbol _DSDEVID_DefaultCapture DSRecord.obj : error LNK2001: unresolved external symbol _IID_IDirectSoundCaptureBuffer8 DSRecord.obj : error LNK2001: unresolved external symbol _IID_IDirectSoundNotify Debug/MyDS.exe : fatal error LNK1120: 3 unresolved externals I know that maybe some .lib file haven't been added to the project,but i do have linked "dsound.h" and "dsound.lib" How can I solve it? Thank you so much!
These are DirectX functions - you do have the DriectX SDK installed? The tigress is here :-D
-
These are DirectX functions - you do have the DriectX SDK installed? The tigress is here :-D
Thanks for this, tigress - they wernt functions I was aware of - glad someone else out there knew where they came from 'G'
-
Thanks for this, tigress - they wernt functions I was aware of - glad someone else out there knew where they came from 'G'