> I have a solution with a two projects. The first project contains my classes
> and an executable using those classes. The second project contains unit
[quoted text clipped - 5 lines]
> the linker in the unit test project correctly links with the OBJ files of
> the first project? Both of these projects should create executables.
> choose your 1st project.
> On 21 mar, 08:34, "Sami Lakka" <sami.la...@watechnologies.no_spam.com>
> wrote:
[quoted text clipped - 18 lines]
> Explorer -> "References..." -> "Add New Reference" -> "Projects" Tab -
>> choose your 1st project.
That will only work for pure managed exes, or dll assemblies, because native
mixed exe assemblies aren't relocatable.
You probably will end up moving your common testable code into a dll.
That's needed for reusability in .NET anyway. In native C++, source code
reuse is a viable option as well, but that's what you're up against right
now.
If you want the same compiler options, package those .obj files into a
library (dll or static .lib). If you need different compiler settings,
include the source files in both projects.
Arnaud Debaene - 21 Mar 2007 23:03 GMT
>> On 21 mar, 08:34, "Sami Lakka" <sami.la...@watechnologies.no_spam.com>
>> wrote:
[quoted text clipped - 22 lines]
> That will only work for pure managed exes, or dll assemblies, because
> native mixed exe assemblies aren't relocatable.
Dooh! I missed the fact that the 1st project was an exe, sorry about that
:-(
> If you want the same compiler options, package those .obj files into a
> library (dll or static .lib).
Indeed. This is of course the solution....
Arnaud
MVP - VC