Skip to content

运行的例子无法编译 #67

Description

@wukong2468
#include "eui_neo.h"

namespace app {

    const DslAppConfig& dslAppConfig() {
        static const DslAppConfig config = DslAppConfig{}
        .title("My App")
        .pageId("my_app")
        .windowSize(960, 640);
        return config;
    }

    void compose(eui::Ui& ui, const eui::Screen& screen) {
        ui.column("root")
            .size(screen.width, screen.height)
            .padding(32.0f)
            .content([&] {
                ui.text("title")
                    .text("Hello EUI-NEO")
                    .fontSize(28.0f)
                    .build();
            })
            .build();
    }

} // namespace app
Details

ld.lld: error: undefined symbol: WinMain

referenced by ../crt/crtexewin.c:62
libmingw32.a(lib64_libmingw32_a-crtexewin.o):(main)
clang-22: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions