Skip to content

Building on Linux... #18

@MBilderbeek

Description

@MBilderbeek

Hi, thanks for your work! I'm trying to compile the code on Linux and I ran into a few issues;

  1. expressions/expression_operator_power.cpp needs #include <cmath> and use std::pow on/around line 38
  2. With this, all files compile but I get linker errors:
/usr/bin/ld: compiler.o: in function `CCIRCLE::CCIRCLE()':
compiler.cpp:(.text._ZN7CCIRCLEC2Ev[_ZN7CCIRCLEC5Ev]+0x1b): undefined reference to `vtable for CCIRCLE'
/usr/bin/ld: compiler.o: in function `CGET::CGET()':
compiler.cpp:(.text._ZN4CGETC2Ev[_ZN4CGETC5Ev]+0x1b): undefined reference to `vtable for CGET'
/usr/bin/ld: compiler.o: in function `CSETADJUST::CSETADJUST()':
compiler.cpp:(.text._ZN10CSETADJUSTC2Ev[_ZN10CSETADJUSTC5Ev]+0x1b): undefined reference to `vtable for CSETADJUST'
/usr/bin/ld: compiler.o: in function `CSETBEEP::CSETBEEP()':
compiler.cpp:(.text._ZN8CSETBEEPC2Ev[_ZN8CSETBEEPC5Ev]+0x1b): undefined reference to `vtable for CSETBEEP'
/usr/bin/ld: compiler.o: in function `CSETPROMPT::CSETPROMPT()':
compiler.cpp:(.text._ZN10CSETPROMPTC2Ev[_ZN10CSETPROMPTC5Ev]+0x1b): undefined reference to `vtable for CSETPROMPT'
/usr/bin/ld: compiler.o: in function `CSETSCREEN::CSETSCREEN()':
compiler.cpp:(.text._ZN10CSETSCREENC2Ev[_ZN10CSETSCREENC5Ev]+0x1b): undefined reference to `vtable for CSETSCREEN'
/usr/bin/ld: compiler.o: in function `CSETTITLE::CSETTITLE()':
compiler.cpp:(.text._ZN9CSETTITLEC2Ev[_ZN9CSETTITLEC5Ev]+0x1b): undefined reference to `vtable for CSETTITLE'
/usr/bin/ld: expressions/expression.o: in function `CEXPRESSION_POINT::CEXPRESSION_POINT()':
expression.cpp:(.text._ZN17CEXPRESSION_POINTC2Ev[_ZN17CEXPRESSION_POINTC5Ev]+0x1b): undefined reference to `vtable for CEXPRESSION_POINT'

I have tried to add virtual emtpy destructor definitions here and there, but that didn't seem to help enough... any idea?

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