Skip to content

Error In Generating Debug Symbols #157

@HesamR

Description

@HesamR

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)")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions