Pretty much what the title says. Whenever I try to use objects, I get these errors (after a very long stack trace):
Code:
Code:
Code:
I can compile non-oop code just fine. I am on Windows 10 compiling for the fx-CG50.
Here is the source. All help appreciated.
Code:
Triangle class header:
https://pastebin.com/sKRp7cwx]
Stack trace:
https://pastebin.com/fn3XzEEK
idk what the reference to d:\mingw etc is, I think it's from the machine that built it. d:/library etc is my own path
Code:
undefined reference to `operator new(unsigned int)'
Code:
undefined reference to `operator delete(void*)'
Code:
undefined reference to `___gxx_personality_v0'
I can compile non-oop code just fine. I am on Windows 10 compiling for the fx-CG50.
Here is the source. All help appreciated.
Code:
#include <fxcg/display.h>
#include <fxcg/keyboard.h>
#include <fxcg/rtc.h>
#include <fxcg/misc.h>
#include "triangles.hpp"
color_t TriShader(int x, int y)
{
return COLOR_AZURE;
}
int main()
{
PrintXY(3, 8, "--Hello World!", TEXT_MODE_NORMAL, TEXT_COLOR_RED);
Triangle* tri = new Triangle(&TriShader, 0, 0, 100, 100, 100, 0);
tri->Shade();
Bdisp_PutDisp_DD();
delete tri;
int key;
while (1)
{
GetKey(&key);
}
return 0;
}
Triangle class header:
https://pastebin.com/sKRp7cwx]
Stack trace:
https://pastebin.com/fn3XzEEK
idk what the reference to d:\mingw etc is, I think it's from the machine that built it. d:/library etc is my own path