Base: Port cpp-basic template application to LibMain :^)

This commit is contained in:
Andreas Kling 2021-11-30 18:57:49 +01:00
parent d8cccf85de
commit e354f5986f
Notes: sideshowbarker 2024-07-17 23:16:18 +09:00
2 changed files with 4 additions and 2 deletions

View file

@ -8,7 +8,7 @@ CXXFLAGS = -g -std=c++2a
all: \$(PROGRAM)
\$(PROGRAM): \$(OBJS)
\$(CXX) -o \$@ \$(OBJS)
\$(CXX) -o \$@ \$(OBJS) -lmain
%.o: %.cpp
\$(CXX) \$(CXXFLAGS) -o \$@ -c \$<

View file

@ -1,6 +1,8 @@
#include <AK/Format.h>
#include <LibCore/System.h>
#include <LibMain/Main.h>
int main(int argc, char** argv)
ErrorOr<int> serenity_main(Main::Arguments)
{
outln("Hello friends!");
return 0;