Error when building solution

  • Im_ygy
    1st Sep 2018 Member 0 Permalink

    What is RAYT?

     

    I've got this error:

     

    ```

    Severity Code Description Project File Line Suppression State
    Error C1083 Cannot open source file: 'src\simulation\elements\RAYT.cpp': No such file or directory The-Powder-Toy D:\TPT\c1xx 1

    ```

     

    I don't know this is my bad or something.

     

    please help me with this......

     

    Should me just create the file?

    Edited 4 times by Im_ygy. Last: 1st Sep 2018
  • jacob1
    1st Sep 2018 Developer 0 Permalink
    Which branch are you building? Are you building this? https://github.com/ThePowderToy/The-Powder-Toy

    The project is supposed to be used with the 'master' branch (the default branch)
  • Im_ygy
    2nd Sep 2018 Member 0 Permalink

    @jacob1 (View Post)

    Yes master branch.

    But it seems that it doesn't have RAYT.

    What i see(in master branch)is like this:

    https://i.loli.net/2018/09/02/5b8bd0a60a5c4.png

    Is it a kind of wrong branch merging or something like that.

    Edited once by Im_ygy. Last: 2nd Sep 2018
  • Cracker1000
    2nd Sep 2018 Member 0 Permalink

    @Im_ygy (View Post)

     Not sure but is it because the rayt is now replaced by ldtc?

  • Im_ygy
    2nd Sep 2018 Member 0 Permalink

    @cracker1000 (View Post)

     Well you are correct. but how can i fix it?

    I was writing a code for a sencor......to fix the hole up.

    Edited once by Im_ygy. Last: 2nd Sep 2018
  • jacob1
    2nd Sep 2018 Developer 0 Permalink
    @cracker1000 (View Post)
    Oh thanks ... I forgot about that. That is why.

    @Im_ygy (View Post)
    Right click it and remove RAYT.cpp. Then right click the folder with all the element files in it and find the "add to solution" button (might be in a submenu, I don't remember). Add LDTC.cpp
  • Im_ygy
    3rd Sep 2018 Member 0 Permalink

    @jacob1 (View Post)

    Ok thanks.

    It's astonishing that ElementClasses.h needn't be modified.

    Problem is also solved

    Edited once by Im_ygy. Last: 3rd Sep 2018