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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:12:50+00:00 2026-06-05T13:12:50+00:00

I am using C++ with Visual Studio 2010. I am trying to build a

  • 0

I am using C++ with Visual Studio 2010. I am trying to build a client-server architecture where both client and server rely on the same ‘Engine’

Following is a diagram which explains this:

image http://img266.imageshack.us/img266/5573/dependencies.png

Where:

Engine – Application specific engine

BaseEngine – Non-application specific engine (used by other applications)

SomeLibrary – A library that the BaseEngine depends on

Using Visual Studio, I have set up the appropriate project references and ‘Include Directories’.

The Client is able to see methods in the Engine and the Engine is able to see methods in the the BaseEngine. However the problem is that I’m getting a few Link errors (LNK1120, LNK2001) when the Client and/or Server call methods on the Engine.

It seems that this is occuring because the Engine relies on BaseEngine and the Client does not have a dependency on BaseEngine.

So my question is:

Is there anyway that the Engine and BaseEngine projects can be wrapped up so that the Client and Server don’t need to reference the BaseEngine?

  • 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-05T13:12:51+00:00Added an answer on June 5, 2026 at 1:12 pm

    The question is: Are the linker errors related to Engine.lib or to BaseEngine.lib?
    I assume you have problems with functions exported by BaseEngine.lib and referenced in client/server which result in unresolved symbols.
    If your client/server rely on functionality exported by BaseEngine.lib but you only refrence Engine.lib you have to either reference BaseEngine library directly or make Engine.lib forward these functionality provided by BaseEngine.lib explicitly.
    The fact that Engine.lib does depend on (and reference) BaseEngine.lib does not imply that the functionality of BaseEngine.lib is seamless forwarded by Engine.lib. I guess you are stumbling across this assumption. The linker just includes functionality from BaseEngine.lib to Engine.lib if they are really needed. But none of this functionality is visible to further dependencies (client/server in your case) until you explicitly do so. I would suggest you write some kind of wrapper functionality in Engine.lib to forward functions from BaseEngine.lib referenced by client/server.

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

Sidebar

Related Questions

using Visual.Web.Developer.2010.Express; using SQL.Server.Management.Studio.2008.R2; What I'm ultimately trying to do is update a sql
I'm trying to edit my TFS 2010 build templates using the Visual Studio 2010
We have developers using Visual Studio 2010 professional and some trying out Visual Studio
I'm using the Visual Studio 2010 RC for .NET 4.0 and I'm trying to
I'm trying to calibrate a webcam using OpenCV 2.3.1 and Visual Studio 2010 (c++
We are using Visual Studio 2010 connected to Team Foundation Server 2010 and we
I am trying to build the cpp-netlib library from Visual Studio 2010 but get
We're trying to use T4 with Visual Studio 2010 (SP1) to build scripts for
I'm trying to debug JavaScript code using Visual Studio 2010, but I can't set
Sorry if asked before. Using Visual Studio 2010, I am trying to sign my

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.