[ace-users] Linking problem with VisualC++ Express on WindowsVista

Adam Mitz mitza at ociweb.com
Sun Sep 16 20:06:21 CDT 2007

Hi Chris,

> I would recommend you to look at MPC, in the distribution you find mpc
> files, we use MPC with these files to generate the solutions, 
> that is much
> easier then making and maintaining them by hand.

I can't agree more with Johnny.  We've had great success and productivity
improvements with MPC in maintaining ACE+TAO, in projects that use ACE+TAO,
and even in projects that are completely independent of ACE+TAO.  You can
learn more about MPC on its homepage:

Of course I didn't write this just to expound on MPC, see my suggestion for
your particular problem below...

> > I am new to C++ and ACE and am facing some linking problems while
> > trying to build a simple example project on Windows Vista 
> using VisualC
> > ++ Express.
> > 
> > I managed to install and compile ACE without any problems. 
> In order to
> > see if everything is set up correctly I then created a separate
> > project where I imported the Future1 example 
> (ace\ACE_wrappers\examples
> > \Threads\future1.cpp). I configured the ACE_ROOT and PATH 
> environment
> > variables and added the paths and ACE.lib in the properties for the
> > project. When I try to build the solution I get the linking errors
> > shown below. I have tried changing the settings a number of ways
> > without any success, and suspect there is some basic 
> step/setting that
> > I have missed. Can someone point me in the right direction?

In a "Debug" configuration, link against ACEd.lib instead of ACE.lib.  By
default with Visual Studio compilers the settings for ACE_INLINE are
different in debug and release configurations.  So if your application is
Debug, it needs to use a Debug build of ACE or else functions that were
declared inline while building the ACE library won't be present in the
library when it comes time to link the app.

Adam Mitz
Software Engineer
Object Computing, Inc.

More information about the Ace-users mailing list