-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
I tried the test case "common/13 pch" on windows with ninja & msvc and get the following error when I run ninja:
meson.py src build
...
cd build
ninja
[3/3] Linking target prog.exe
FAILED: cmd /c link /OUT:prog.exe prog.dir\prog.c.obj "/nologo"
prog.c.obj : error LNK2011: precompiled object not linked in; image may not run
prog.exe : fatal error LNK1120: 1 unresolved externals
ninja: build stopped: subcommand failed.
The problem can be fixed by manually adding the pch object file to the list of objects:
exe = executable('prog', 'prog.c',
c_pch : ['pch/prog_pch.c', 'pch/prog.h'],
objects : '../build/prog_pch.obj')
Meson should automatically add that file.
Metadata
Metadata
Assignees
Labels
No labels