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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:00:57+00:00 2026-05-17T21:00:57+00:00

I have a solution consisting of 3 projects. One is a static library, and

  • 0

I have a solution consisting of 3 projects. One is a static library, and two are console-based .exe files that depend on and link against this library. Their settings seem to be identical. I build one of them:

1>—— Build started: Project: masksample, Configuration: Debug Win32 ——
1>Compiling…
1>stdafx.cpp
1>Compiling…
1>masksample.cpp
1>Compiling manifest to resources…
1>Linking…
1>LINK : C:\Users\DarekSz\Praca\cci\Debug\masksample.exe not found or not built by the last incremental link; performing full link
1>Embedding manifest…
1>masksample – 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========

Then I go on to building the other:

1>—— Build started: Project: calibsample, Configuration: Debug Win32 ——
1>Compiling…
1>stdafx.cpp
1>Compiling…
1>calibsample.cpp
1>Compiling manifest to resources…
1>Linking…
1>LINK : C:\Users\DarekSz\Praca\cci\Debug\calibsample.exe not found or not built by the last incremental link; performing full link
1> Creating library C:\Users\DarekSz\Praca\cci\Debug\calibsample.lib and object C:\Users\DarekSz\Praca\cci\Debug\calibsample.exp
1>Embedding manifest…
1>calibsample – 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========

Why does the linker create the .lib and .exp files this time? Is there some option to turn this on and off that I activated without knowing about it?

  • 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-17T21:00:57+00:00Added an answer on May 17, 2026 at 9:00 pm

    It’s a bit late but, maybe someone else could find useful this hint.

    BTW I’m not a c++ guru…

    In my solution i have 3 projects. One is a dll project, the others are two Win32 app projects referencing the dll project.

    Usually, with your dll built, you have also some others file generated (.exp, .lib) also for the NON dll projects. This can occour when you include a .h file of the dll project, into the app project, which contains a class marked with __declspec(dllexport).

    To avoid the linker think your are trying to include some .h files to “export” use a conditional expression to define your _declspec macro.

    Example:

    #if defined(_DO_NOT_EXPORT)
    #define DllExport  
    #else
    #define DllExport __declspec(dllexport)
    #endif
    

    Ok, let’s say you have a MyClass.h in your dll project.

    in your .h file you could have now:

    class DllExport MyClass {
     ...
    }
    

    When you want to include this .h file into a NON dll project, you have simply to define the _DO_NOT_EXPORT condition

    #define _DO_NOT_EXPORT
    #include "MyClass.h"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Pocket PC 2003 solution, consisting of three projects, that was created
I have a solution consisting of 2 projects. One is a DLL, and the
I have a solution consisting of several library project and one application project. I
I have a rather large solution consisting of several projects that wants to install
I have a solution consisting of five projects, each of which compile to separate
I have a Visual Studio (2008) solution consisting of several projects, not all in
I have a solution with several projects. One of them is a setup project.
I have a solution with many projects. One project contain few custom components. One
I have a solution with several projects, where the startup project has a post-build
I have a solution with other 70 projects into it. My question is :

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.