Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. linking error

linking error

Scheduled Pinned Locked Moved Managed C++/CLI
c++csharpvisual-studiohelpquestion
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    EyesOfTruth
    wrote on last edited by
    #1

    Hi, I just swtiched to the .NET for my programming. I have an error for my first Visual C++ .Net project: error LNK2001: unresolved external symbol "public: __thiscall TEnv::TEnv(float)" (??0TEnv@@$$FQAE@M@Z) What I did is the following: 1. Open a blank solution. 2. Add a new project Test (Managed C++ Application) 3. Add another new project TObject (Managed C++ Class Library) 4. Define a class TEnv in the TObject with the constructor TEnv(float t), but this constructor is implemented in the .cpp file. Then I begin to use class TEnv in the main() function inside project Test... I got this error. I am afraid the project setting is wrong, but I haven't be able to figure out why. It works in the good old days in Visual Studio... Thanks, and Merry Xmas!

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups