Solved

fatal error LNK1120: 1 unresolved externals

Posted on 2002-05-28
2
14,459 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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 …

813 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now