Solved

fatal error LNK1120: 1 unresolved externals

Posted on 2002-05-28
2
14,477 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Suggested Solutions

Title # Comments Views Activity
how to monitor remote shell execution on linux 9 107
sum28 challenge 31 117
abstract class with all non abstract mentods 6 84
Thin secure Windows 10 5 108
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

726 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