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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:05:21+00:00 2026-06-11T14:05:21+00:00

I am attempting to create a CLI DLL to bridge between my unmanaged C++

  • 0

I am attempting to create a CLI DLL to bridge between my unmanaged C++ executable project and another managed project, all in a single Visual Studio solution.

The problem I am having is earlier, though: I am unable to link reference the unmanaged C++ project in my new CLI project. I have included the required .h files, and added a reference to the unmanaged project in the CLI project. The compilation is successful, but I am getting linkage errors I have not seen before:

Error 2
error LNK2028: unresolved token (0A000088) “public: __cdecl …

I have added a reference in the project properties and included the .h files.

Thanks

  • 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-11T14:05:22+00:00Added an answer on June 11, 2026 at 2:05 pm

    Seems like the linker is missing some intermediate information on the other project. I truly don’t remember if ‘referencing’ native projects does set up the linking phase automatically.. I actually find it strange you say “reference”.. for me the word “reference” it a bit limited to the world of .Net assemblies because of the “add reference” in the VS, which makes noone care about includes/libraries and which IIRC is unavailable for native dlls for obvious reasons. If you meant you configured the linker options manually, then pardon me 🙂

    If not – please explain how did you reference the native module.

    Either way, if the “referencing” worked earlier, the file names might went out of sync if i.e. you renamed the project, of maybe file timestamps were a bit off and the VS did not notice new versions.. Simple Clear&Rebuild sometimes magically helps. If not, you can try to manually delete Debug/Release/Bin/Obj folders and try rebuilding again.

    To try at diagnosing, the first step is to see what the linker is given as input: in the project property pages for the C++/CLI project, check Linker->CommandLine and see if a file with name similar to “myOtherNativeCppProjectName.lib” is visible there. If not – here’s the problem, just add it in the linker options on previos linker pages, or re-do the reference-adding, then clean, rebuild and see what happens.

    To say something more, you’d have to post whole error message – this one is truncated at function name, so it’s hard to tell if it is your function, or some missing-library module. As the compilation phase succeeded and the problem is at link – are you 100% sure you have that function implemented? I mean, correct .h was surely provided to the C++/CLI project, but were the right .cpp files matching the .h file included in the native? That’s quite common too to forget to add one file. Or forget to instantiate a template.. Or mistype class/function names between .H and .CPP..

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

Sidebar

Related Questions

When attempting to create an Azure project in Visual Studio 2010 I get a
I'm attempting to create a single Controller class to handle all foreseeable surveys that
In attempting to create an initial, failing unit test in Visual Studio Professonal 2008's
I'm attempting to create a custom dialog with a semi transparent background. I managed
I'm attempting to create my first real C# application - a small pet project
I'm attempting to create a new iPad project for an app I'm working on,
I am attempting to create a EJB3.0 container-managed persistence bean and am having issues
While attempting to create a replacement tablespace for USER, I accidentally created a datafile
Im attempting to create a new operator :? on lists, which operates the same
I attempting to create an 800x500 div with four overlapping divs inside the container

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.