Error when compiling

  • DreamingWarlord
    25th Feb 2019 Member 0 Permalink

    Im using Eclipse and when I try to compile, error...

     

    Stacktrace:

    15:35:37 **** Rebuild of configuration Debug for project The-Powder-Toy-master ****
    Info: Internal Builder is used for build
    g++ -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\bson\\BSON.o" "..\\src\\bson\\BSON.cpp"
    In file included from ..\src\bson\BSON.cpp:24:
    ..\src\bson\BSON.h:30:10: fatal error: common/tpt-inline.h: No such file or directory
     #include "common/tpt-inline.h"
              ^~~~~~~~~~~~~~~~~~~~~
    compilation terminated.

    15:35:42 Build Failed. 1 errors, 0 warnings. (took 4s.931ms)

    Edited once by DreamingWarlord. Last: 25th Feb 2019
  • player4444
    25th Feb 2019 Member 0 Permalink

    I believe its that your slash is inverted. Use \ instead of / . Also check your path, there might be a typo.

  • jacob1
    25th Feb 2019 Developer 0 Permalink
    Looks like you didn't configure the include directories properly. src/ needs to be recognized as an include directory, you can use CPPPATH for this. A few others also need to be added like resources/ and data/

    Compiling with eclipse is unsupported but should be possible with enough effort.
    Edited 2 times by jacob1. Last: 25th Feb 2019