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 6676941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:03:20+00:00 2026-05-26T04:03:20+00:00

I am getting unexpected linker errors after refactoring my solution from 1 to 3

  • 0

I am getting unexpected linker errors after refactoring my solution from 1 to 3 projects. In this first instance I get two unresolved tokens, like

error LNK2020: unresolved token (0600000C) Mynamespace.MyClass::unresolvedStaticFunc

error LNK2020: unresolved token (0600000C) Mynamespace.MyClass::unresolvedOtherStaticFunc

fatal error LNK1120: 2 unresolved externals

I have not touched this class in my refactoring. Both methods are declared static in the header but not the body (cpp file).

I’ve rechecked my errors and the new project is compiling fine but forcing the old one to break on linking.

I think I need to add files to my new projects but they seem nicely separated into their own folders now. Another project for the shared class perhaps? I am adding what I thought a simple feature and my project count has already tripled.

  • 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-26T04:03:20+00:00Added an answer on May 26, 2026 at 4:03 am

    You should not be #includeing header files containing managed types across multiple projects. Instead, in the new project, add an assembly reference to the old project; this way, the type information will be gathered from the .NET metadata embedded into the old project’s assembly.

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

Sidebar

Related Questions

I am getting some unexpected behavior from Html.EditorFor(). I have this controller: [HandleError] public
I'm getting some unexpected results calling one makefile from another. I have two makefiles,
I am getting unexpected(?) results from this mergesort implementation. It's extremely slow compared to
Please help me out on this explode() function issue. I am getting unexpected results
Getting the subdomain from a URL sounds easy at first. http://www.domain.example Scan for the
I'm getting unexpected results from the round() and roundf() functions in the math.h library.
Today I was tracking down why my program was getting some unexpected checksum-mismatch errors,
We are getting some unexpected results randomly from some servers when trying to open
I'm getting unexpected results with this code: 'foo'.match(new RegExp('\bfoo\b')); // Returns null Why is
I keep getting this exception: Oops: CannotCompileException An unexpected error occured caused by exception

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.