Static library links in wxWidgets statically, but apps using my lib still require wxwidgets

Hopefully someone can help me out here. I'm using Visual Studio 2005 and creating a static library that links in wxWidgets statically. I have:

<ol> <li>compiled wxWidgets statically according to their guide</li> <li>included the lib directory in my "Additional Library Directories" property</li> <li>added all of the wxWidget libs in my "Additional Dependencies" property</li> <li>set my "Link Library Dependencies" property to "Yes"</li> <li>set C++ Optimization to Disabled.</li> </ol>

I know that some of those steps shouldn't have to be done, I did so on a "just in case" rational.

While my library compiles without a hitch, the test application that includes my static lib complains during linking that it cannot find 'wxbase28.lib' (which I included).

I should note that I abstracted wxWidgets out completely, so the library's public API has no mention of anything wxWidget-related. The test app shouldn't know that wxWidgets exists.

My tiny library has grown to over 51 MB, so I get the feeling that the libraries are being linked in... so why does my test application complain that it cannot find the wxWidgets library?

Thank you


It is the link step in the build process that pulls dependent libs in : When you build a static library, it does NOT pull in any recursive dependencies as there is no link step.

So both - your - and wx's - static libs need to be present then for the final application to link.


I hate to suggest the obvious, but is wxbase28.lib listed in the list of dependencies of your test application?


  • Exchange EWS Managed API 2.0 get by date
  • Saving formset with drop-down-menu Foreignkey: IntegrityError XXX_id may not be NULL
  • How to use a custom ValidatorUpdateDisplay function when the controls / validators are loaded on pos
  • Which variable for compiler flags of CMake's ADD_LIBRARY function?
  • Help compiling with gcc/g++
  • augeas in puppet does not change file
  • NSString conversion to lowercase crashes
  • Ajax call on CodeIgniter controller results in 403 Forbidden [closed]
  • white space and makefile
  • Force refresh of browser-cache for HTML document
  • Hide all div's except one
  • Compare Dictionary
  • Multiple calender in exchange web service
  • Gforce min not supported for character in data.table
  • IE11 textarea loses focus if another textarea is disabled
  • How can I reset dropdown data if modal closed on vue component?
  • How to call a procedure using NHibernate that returns result from multiple tables?
  • Unzip archive in .Net CORE 1.0
  • How do I import an existing Grails 3 (3.0.12) project in IntelliJ 15
  • How to getText() from the input field of an angularjs Application
  • Sequential (transactional) API calls in angular 4 with state management
  • Access Android Market through SSH tunnel
  • Unable to install Git-core+svn by MacPorts
  • Webgrid not refreshing after delete MVC
  • How do I exclude a dependency in provided scope when running in Maven test scope?
  • WPF - CanExecute dosn't fire when raising Commands from a UserControl
  • Make VS2015 use angular-cli ng at build time in a .NET project
  • Jquery UI tool tip close icon
  • How do I fake an specific browser client when using Java's Net library?
  • How to get a value (ex: baseURL) in every Karate feature?
  • How to pass list parameters for each object using Spring MVC?
  • Traverse Array and Display in markup
  • How to set the response of a form post action to a iframe source?
  • Setting background image for body element in xhtml (for different monitors and resolutions)
  • Change div Background jquery
  • Qt: Run a script BEFORE make
  • JaxB to read class hierarchy
  • Checking variable from a different class in C#
  • Does armcc optimizes non-volatile variables with -O0?
  • reshape alternating columns in less time and using less memory