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

  • SEARCH
  • Home
  • 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 6117255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:17:59+00:00 2026-05-23T15:17:59+00:00

I am getting some linking errors during the compilation of C project in Microsoft

  • 0

I am getting some linking errors during the compilation of C project in Microsoft Visual Studio 2010.I am getting the following errors:

 error LNK2019: unresolved external symbol _CreateRelation referenced in function _main

The CreateRelation is one of the functions in my project. Following are my questions:

  1. I think it is some dependencies problem.How would I set those dependencies rule in the IDE?

  2. could you please tell me, is it always possible to build a project and set the linking rule, how much it is larger, without using makefile?

[EDIT]

           relation.h

           void createRelation(LIST);

            mainfile.c
            #include relation.h
            #include xyz.h
             .
             .
             .


            int main(){
            LIST Relation1;
            some codes //
            createRelation(Relation1);
            some code // 

                    }

The function creatRelation() is defined in the realation.h.

EDIT 2

          In the function containing main
  • 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-05-23T15:17:59+00:00Added an answer on May 23, 2026 at 3:17 pm

    There are a few ways to set the dependencies for the build process.

    If the code you are referencing is in a sub-project you can simply tell VS the build-dependencies. You do that by right-clicking on the project and select project dependencies. Then you can check all projects that should be built before this project is being built.

    Another nifty feature of VS2010 are Property Sheets. In older versions of VS you had to tell the compiler the include path and the lib-path for every project. Now you can create property sheets for every library you are using and then simply adding them to your project. This way you only have to create a property sheet once and can use it in many projects.

    So if the code is in another project that is not a sub-project you have to set the lib-path and include-path via those property sheets. You can display the property sheets used by your project by clicking View->Additional Windows->Property Manager

    If you are not referencing to any external projects. This problem is most likely caused by you not implementing a function you declared. So the compiler knows about the function-prototype and doesn’t complain but the linker can’t find an implementation of the symbol.

    I hope that helps

    — edit —

    Since you said that the implementation is in the same file as the main-function I would suspect that the signature of the declared and defined function do not match. Are you getting any warnings about implicit function declaration?

    Is that a copy-paste error?
    CreateRealtion(x); vs. CreateRelation(x);

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

Sidebar

Related Questions

I'm getting some really wierd linking errors from a class I wrote. I am
I'm getting some errors which make me think that my Linux program isn't linking
I'm working on a school project and I'm getting some weird errors from Xcode.
I've been getting some strange linking errors in XCode. I understand more or less
getting this error while linking an app, some one an idea? ld: duplicate symbol
I am getting some errors thrown in my code when I open a Windows
I am getting some code to build and debug in VS2008. Basically the project
I have been working on getting a basic ATL project to compile in Visual
TLDR Linking my fresh boost build with Visual Studio (/Mtd) causes boost to throw
I am writing some code and I am getting a strange error: my for

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.