I'm trying to compile a VC++ 2010 solution of two Static Library projects and I just get this (it's the build log):

1>------ Build started: Project: df_debug, Configuration: Debug Win32 ------
2>------ Build started: Project: common, Configuration: Debug Win32 ------
1>Build started 14/02/2012 10:51:14 PM.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00
2>Build started 14/02/2012 10:51:14 PM.
2>
2>Build FAILED.
2>
2>Time Elapsed 00:00:00
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

I don't understand - please help :)

zip up all files and attach so that we can see what you did

I've attached the solution to this post.

Below are the messages I get. common.lib is built ok, but df_debug is not because of the error on line 24

1>------ Rebuild All started: Project: df_debug, Configuration: Debug Win32 ------
2>------ Rebuild All started: Project: common, Configuration: Debug Win32 ------
1>Build started 2/14/2012 10:27:20 AM.
2>Build started 2/14/2012 10:27:20 AM.
1>InitializeBuildStatus:
1>  Touching "Debug\df_debug.unsuccessfulbuild".
2>InitializeBuildStatus:
2>  Creating "Debug\common.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>ClCompile:
1>  df_debug.cpp
2>ClCompile:
2>  common.cpp
1>  dbgassert.cpp
2>Lib:
2>  common.vcxproj -> C:\dvlp\code\code\Debug\common.lib
2>FinalizeBuildStatus:
2>  Deleting file "Debug\common.unsuccessfulbuild".
2>  Touching "Debug\common.lastbuildstate".
2>
2>Build succeeded.
2>
2>Time Elapsed 00:00:00.76
1>c:\dvlp\code\code\df_debug\dbgassert.cpp(3): fatal error C1083: Cannot open include file: '../df_common/strtools.h': No such file or directory
1>  Generating Code...
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.30
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========

Ok well I added in a new project to test the two libraries and after that, I fixed that compile error then it compiled fine. Thanks for your help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.