Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8724319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:48:18+00:00 2026-06-13T07:48:18+00:00

I am currently trying to write some code to show some text using DirectX

  • 0

I am currently trying to write some code to show some text using DirectX 11, but when it came to building it, I received the following error:

1>Source.obj : error LNK2019: unresolved external symbol _D3DX10CreateFontIndirectA@12 referenced in function "bool __cdecl InitScene(void)" (?InitScene@@YA_NXZ)

And for reference, here’s the code which I’ve got, including the line which I think might be causing the problem:

bool InitScene()
{
D3DX10_FONT_DESC fd;
fd.Height = 175;
fd.Width = 0;
fd.Weight = 0;
fd.MipLevels = 1;
fd.Italic = false;
fd.CharSet = OUT_DEFAULT_PRECIS;
fd.Quality = DEFAULT_QUALITY;
fd.PitchAndFamily = DEFAULT_PITCH | FF_DONTCARE;
strcpy_s(fd.FaceName, "Impact"); //Need to find out how to fix this.

D3DX10CreateFontIndirect(d3dDevice, &fd, &Font);

return true;
}

Does anyone know why this is happening, and if so, how can it be fixed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T07:48:19+00:00Added an answer on June 13, 2026 at 7:48 am

    You need to link with D3DX10.lib.

    Assuming you are using Visual Studio, right click on your project and open Properties. On left section, expand and select Configuration Properties->Linker->Input. Then on the right section, in “Addition Dependencies” add the library name as D3DX10.lib separating it with any other listed libraries using a semicolon.

    To make sure that these “Additional Dependencies” are actually used during build process, two more things should be verified.
    Under Configuration Properties->Linked->General
    1) make sure to select “Yes” for “Link Library Dependencies”.
    2) make sure to select “Yes” for “Use Library Dependency Inputs”.

    Also, in future, for any such error which says “Unresolved external symbol”, find out which library the Unresolved function/symbol belongs to and add that library in “Additional Dependencies” as mentioned above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently trying to write some code which turns C# Expressions into text.
I am currently trying to write some code that will accept some FTP details,
I'm trying to write some code against libnotify, but the documentation for perl with
I'm currently trying to write a script that will connect to a site using
Currently I'm trying to write my first Python library and I've encountered the following
currently I am trying to write to an 20x4 LCD Dot-Matrix Module using Perle's
Currently am trying to read and write mp3 tags without using any external modules
I'm currently facing a problem with some css code. What I'm trying to achieve
I am trying to write a function to change some folder names, but I
I'm trying to write some jQuery code that will highlight the element the cursor

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.