Skip to content

Stdafx.obj must be linked when using precompiled header #2286

@bdbaddog

Description

@bdbaddog

This issue was originally created at: 2009-01-08 07:58:58.
This issue was reported by: csiki.

csiki said at 2009-01-08 07:58:58

Using precompiled header under msvc, you need to link the precompiled header's object as well. If you don't link in (mostly stdafx.obj), then the only forward declared classes in the precompiled header won't be able to see in the debugger. Now you need to do this (as a workaround):

Program(target="test", source=["test.cpp", "stdafx.obj"])

or

Library(target="test", source=["test.cpp", "stdafx.obj"])

gregnoel said at 2009-01-23 01:32:08

Bug party triage. There's no programmatic solution to this problem, so explain in the documentation what to do. Brandon to sync up with Steven and write the necessary prose.

gregnoel said this issue blocks #2292 at 2009-01-23 01:53:34.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions