linking error?

This commit is contained in:
2025-03-29 18:44:14 -05:00
parent 00727469e2
commit 5955166ac0
3 changed files with 14 additions and 7 deletions

View File

@@ -35,8 +35,8 @@
buildPhase = ''
clang++ \
src/example_apps/MinimalApp/*.cpp \
include/utils/App/*.cpp \
src/example_apps/MinimalApp/MinimalApp.cpp \
include/utils/App/App.cpp \
-I src -I include \
-Wall \
-o $name

View File

@@ -1,9 +1,14 @@
#ifdef APP_TYPE
#ifdef ENTRYPOINT
#undef ENTRYPOINT
#include "utils/App/App.h"
Archimedes::App* MakeApp();
int main(int argc, char* argv[]) {
APP_TYPE app;
app.handleArgs(argc, argv);
app.run();
Archimedes::App* app = MakeApp();
app->handleArgs(argc, argv);
app->run();
}
#endif

View File

@@ -1,4 +1,4 @@
#define APP_TYPE MinimalApp
#define ENTRYPOINT
#include "Archimedes.h"
class MinimalApp : public Archimedes::App {
@@ -28,3 +28,5 @@ class MinimalApp : public Archimedes::App {
void startModule(std::string);
};
Archimedes::App* MakeApp() { return new MinimalApp(); }