linking error?
This commit is contained in:
@@ -35,8 +35,8 @@
|
|||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
clang++ \
|
clang++ \
|
||||||
src/example_apps/MinimalApp/*.cpp \
|
src/example_apps/MinimalApp/MinimalApp.cpp \
|
||||||
include/utils/App/*.cpp \
|
include/utils/App/App.cpp \
|
||||||
-I src -I include \
|
-I src -I include \
|
||||||
-Wall \
|
-Wall \
|
||||||
-o $name
|
-o $name
|
||||||
|
|||||||
@@ -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[]) {
|
int main(int argc, char* argv[]) {
|
||||||
APP_TYPE app;
|
Archimedes::App* app = MakeApp();
|
||||||
app.handleArgs(argc, argv);
|
app->handleArgs(argc, argv);
|
||||||
app.run();
|
app->run();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#define APP_TYPE MinimalApp
|
#define ENTRYPOINT
|
||||||
#include "Archimedes.h"
|
#include "Archimedes.h"
|
||||||
|
|
||||||
class MinimalApp : public Archimedes::App {
|
class MinimalApp : public Archimedes::App {
|
||||||
@@ -28,3 +28,5 @@ class MinimalApp : public Archimedes::App {
|
|||||||
void startModule(std::string);
|
void startModule(std::string);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Archimedes::App* MakeApp() { return new MinimalApp(); }
|
||||||
|
|||||||
Reference in New Issue
Block a user