Solved

fatal error LNK1120: 1 unresolved externals

Posted on 2002-05-28
2
14,350 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
Comment Utility
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
Comment Utility
Thanks again for the help!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

11 Experts available now in Live!

Get 1:1 Help Now