Skip to main content
GameDev.net gamedev.net
🔒 Locked

DirectX Link Error

Started by ATronic Oct 4, 2001 at 5:07 PM 8 replies 2.4k views
Original Post
ATronic
ATronic
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!"
blackbot20
blackbot20
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
ATronic
ATronic
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!"
DanTheRocker
DanTheRocker
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
ATronic
ATronic
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!"
blackbot20
blackbot20
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
Obelix
Obelix
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.
ATronic
ATronic
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!"
ATronic
ATronic
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!"

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.