Re: VC++ 6.0 Project Settings question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Eric wrote:
I have 2 projects in a VC 6.0 workspace. One is a C++ static library.
The other is an executable that is dependent on the static lib. In the
Linker options for the executable, I have included the library name
into Object/library modules. In addition, I have given the executable
project a dependency on the static lib. However, when I modify the
static lib and batch build the projects, the executable will not
relink! Is there something I am missing here? Shouldn't it relink if
a dependency changed??



Two things to do:
- Select the Project/Dependencies menu item to open the Project Dependencies dialog. In this dialog select your EXE project as the "project to modify" and check the box next to the LIB project in the "Dependent on" window.
- It sounds like you added your LIB file to the list of Object/library modules in the Project Settings dialog Link tab. Remove it from there. (That list is for "system" libraries that the compiler can consider to be static.) Now go to the "FileView" tree window and expand the tree so you can see the components of your EXE project. Your library may be there already due to the first step; if it's not, use the Add Files to Project menu item from the context menu to navigate to your library and add it.

Norm

--
--
To reply, change domain to an adult feline.

.



Relevant Pages

  • Weird DLL problems: Windows Mobile 2003 Second Edition/eVC4 SP3
    ... I have a small MFC app here that works fine on anything from PPC2000 ... and filename are correct and all the required libraries are ... LoadLibrary on coredll.dll returns a valid HINSTANCE and 0. ... LoadLibrary on myappmodule2.dll (dependent on myappmodule1.dll) ...
    (microsoft.public.pocketpc.developer)
  • Re: Win32 Libs for 2.4
    ... >> static libraries for both zlib and jpeg. ... >> code compiled with MSC 7.1. ... have only one static lib for these non version dependant things. ...
    (comp.lang.python)
  • Re: Circular Dependency
    ... I have two libraries libA and libB, both of them are dependent on ... each other for certian symbols which is creating a circular dependency ...
    (comp.os.linux.development.apps)
  • Re: How to tell if a lib file created in VC7 is a static or dynamic?
    ... > Could anyone point me to a resource that will help me determine if a lib ... > file is a static lib or dynamic? ... contains static linked code. ... The C++ runtime libraries are examples of ...
    (microsoft.public.dotnet.languages.vc)
  • Re: to learn jQuery if already using prototype
    ... major libraries like Prototype.js, jQuery, etc are all relatively ... Anyone who writes code that is dependent on aberrant behaviour ... The fundamental design of a library can be extremely modular ... industry standard with jQuery second industry standard compliant ...
    (comp.lang.javascript)