Solved

fatal error LNK1120: 1 unresolved externals

Posted on 2002-05-28
2
14,464 Views
Last Modified: 2013-11-20
I'm using C++6.0 and DirectX 7.0 with the SDK.

I'm trying to do this:
hRet=DirectDrawCreateEx(NULL, (LPVOID*)&lpDD,IID_IDirectDraw7,NULL);

it seems the compiler can not find IID_IDirectDraw7 and gives this error:

--------------------Configuration: Life - Win32 Debug--------------------
Linking...
LifeView.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw7
Debug/Life.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Life.exe - 2 error(s), 0 warning(s)

under project settings->lib I have this: ddraw.lib guids.lib

What is going on? Along with the answer could someone please tell me what an unresolved external symbol is and how I can solve this problem on my own eg. where to find the symbol. Thanks a lot!

0
Comment
Question by:xersoft
2 Comments
 
LVL 8

Accepted Solution

by:
fl0yd earned 50 total points
ID: 7040687
Sorry, I got you on the wrong track. Link to 'dxguid.lib' instead of 'guids.lib'. Also, make sure that your DirectX lib-directory is above the sdk-lib directory. I think you can find the settings somewhere in tools->options->directories.
Unresolved externals are symbols that are defined somewhere else outside your source code. This error is issued by your linker when it searches for the symbol and is unable to find it. It is usually [but not always] defined in a library file [*.lib], so the /lib-directories are a good place to start searching. Bare in mind though, that the compiler uses a name mangling scheme and somewhat obscures the actual function/symbol name.
0
 
LVL 5

Author Comment

by:xersoft
ID: 7040779
Thanks again for the help!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

839 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