Advertisement

DirectX Link Error

Started by October 04, 2001 05:07 PM
8 comments, last by ATronic 23 years, 4 months ago
New problem. Link error that appears twice: Undefined Symbol: __imp__CoCreateInstance@20 Undefined Symbol: __imp__CoCreateInstance@20 Anyone know what library this needs? I included every one I have (directx). Perhaps I am missing one. I''m using directX 8 sdk, and this function creates a directsound instance I believe. Any help is much appreciated. Thanks. -Alex Alex Broadwin A-Tronic Software & Design ----- "if you fail in life, you were destined to fail. If you suceed in life, call me." "The answer is out there." "Please help, I''m using Windows!"
Alex BroadwinA-Tronic Software & Design-----"if you fail in life, you were destined to fail. If you suceed in life, call me.""The answer is out there.""Please help, I'm using Windows!"
I''m not too sure which one it is, try including these lib files below (you haven''t already).
d3d8.lib d3dx8.lib dxguid.lib d3dxof.lib

and maybe try these ones...
dxerr8.lib dinput8.lib

(in the link tab under Tools|Settings if you''re using MSVC. also be sure the Tools|Options|Directories|Include Files has the c:\MSSDK\INCLUDE directory in it.)


if that doesn''t work try adding these paths to the include directories...
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE

hope this helps.

Mike
Advertisement
Those files are all in there. Still no luck. )-:

Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"
Alex BroadwinA-Tronic Software & Design-----"if you fail in life, you were destined to fail. If you suceed in life, call me.""The answer is out there.""Please help, I'm using Windows!"
When using DirectDraw put:
#pragma comment(lib, "ddraw.lib")
at the very top of the source code file and out
#define INITGUID
at the top of anything using sound. That ''should do it'' tell me if it does.
-Dan
Nope - problem not solved. By the way - it''s for directsound. Grrrr... This is really bothering me.
Alex BroadwinA-Tronic Software & Design-----"if you fail in life, you were destined to fail. If you suceed in life, call me.""The answer is out there.""Please help, I'm using Windows!"
this is an odd one, is this the first time you've built a DirectX app on this machine?

maybe try posting in the DirectX forum...

Edited by - blackbot20 on October 5, 2001 4:44:57 PM
Advertisement
I think it may be that you are creating a console program instead of a standard Windows GUI program. Some needed libraries are not linked to.
I''ll try the directx forum - this is the first time building a directsound app on my sys - I have built a d-input app - it IS win32 gui, when I remove the init code for directsound it works - and thanks for trying to help.

Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"
Alex BroadwinA-Tronic Software & Design-----"if you fail in life, you were destined to fail. If you suceed in life, call me.""The answer is out there.""Please help, I'm using Windows!"
CoCreateInstance is in ole32.lib, just include that and it should be fine
THAT explains it. Thank you!!!

Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"
Alex BroadwinA-Tronic Software & Design-----"if you fail in life, you were destined to fail. If you suceed in life, call me.""The answer is out there.""Please help, I'm using Windows!"

This topic is closed to new replies.

Advertisement