New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error In Generating Debug Symbols #157

Closed
HesamR opened this Issue Feb 12, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@HesamR

HesamR commented Feb 12, 2018

I'm trying to build my project but i'm getting an error. xmake version: 2.1.9

This is xmake.lua file:

set_targetdir("$(projectdir)/Binaries/$(mode)/$(arch)")
set_objectdir("$(projectdir)/Intermediate/$(mode)/$(arch)")

if is_mode("debug") then
    set_symbols("debug")
    set_optimize("none")
end

if is_mode("release") then
    set_symbols("hidden")
    set_optimize("fastest")
    set_strip("all")
end`

target("Engine")
    set_kind("static")
    add_files("Source/Engine/Core/*.cpp")

This is the Error :

Source\Engine\Core\Core_1.cpp: fatal error C1041: cannot open program database 'C:\Projects\LevelUp\Binaries\debug\x86\Engine.pdb'; if multiple CL.EXE write to the same .PDB file, please use /FS

When I remove these lines I won't get the error anymore.

set_targetdir("$(projectdir)/Binaries/$(mode)/$(arch)")
set_objectdir("$(projectdir)/Intermediate/$(mode)/$(arch)")
@waruqi

This comment has been minimized.

Member

waruqi commented Feb 13, 2018

This is because the output directory of the pdb symbol file does not exist causing the cl.exe compiler cannot open and write this file directly.

I have fixed this problem, you can download xmake-v2.1.9 and try it again.

If you want to known more info about this problem, please see the diff patch: 658c0cc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment