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. C / C++ / MFC
  4. MSVC++ 2005, Project Dependancies and unresolved externals [modified]

MSVC++ 2005, Project Dependancies and unresolved externals [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
2 Posts 2 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.
  • B Offline
    B Offline
    Budric B
    wrote on last edited by
    #1

    Hi, I'm having some trouble using classes defined in one project (compiled as exe) in another project (also to be compiled as exe, to run in a separate process, but part of the same solution). Is it possible at all? Or do I have to import all the .cpp files into the other project and compile them there? I've set up a project dependency, but that doesn't work. I get unresolved externals during compilation. Note, I've also set up project references.

    modified on Thursday, July 17, 2008 12:45 PM

    M 1 Reply Last reply
    0
    • B Budric B

      Hi, I'm having some trouble using classes defined in one project (compiled as exe) in another project (also to be compiled as exe, to run in a separate process, but part of the same solution). Is it possible at all? Or do I have to import all the .cpp files into the other project and compile them there? I've set up a project dependency, but that doesn't work. I get unresolved externals during compilation. Note, I've also set up project references.

      modified on Thursday, July 17, 2008 12:45 PM

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      All the code an individual project needs to build must be part of the project, or available to the project through a library. How you manage the physical files is up to you. I personally use a "common" folder in the solution's folder to keep my common/shared cpp/.h files in one location - only one codebase to update. All projects can reference files there using relative paths, something like "..\common\somecommoncode.h". Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      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