Solved

C++ Language question

Posted on 1997-09-06
2
300 Views
Last Modified: 2008-03-06
When compiling my project I get this error message:
"[Linker Error] Undefined symbol _IID_IDirect3D referenced from C:\Data\Development\CBuilder\DDraw\MainUnit.Obj"

I'm quite new to C++ and I think I just forgot to link a library or header file.  So, which file do I need to link?  And how?

I can supply the source of MainUnit.h or MainUnit.cpp if necessary.
0
Comment
Question by:Odie
2 Comments
 
LVL 3

Accepted Solution

by:
msmits earned 0 total points
ID: 1169020
You are using the IDirect3D OLE interface in your program. The IID_IDirect3D is the CLSID for this OLE interface. It is probably defined in some Direct3D header file or library file.
Please consult the Direct3D documentation for the correct files to include and link.

PS. you may delete the other question, because is looks identical to this one.
0
 
LVL 1

Author Comment

by:Odie
ID: 1169021
OK but I found the cause now (a INITGUID command that had to be at the beginning of the file).
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question