khartmansjsu / MOC-Linux

repository for the re-design of Tharen Rice's Microsoft Visual C++ MOC package
Other
0 stars 0 forks source link

## Get MOC_GridDlg.cpp to compile #2

Open khartmansjsu opened 2 years ago

khartmansjsu commented 2 years ago

Goal: compile MOC_GridDlg.cpp

Summary

Changelog:

Attempt 1:

[khartm12@integrity MOC_Grid_BDE]$ g++ MOC_GridDlg.cpp -o MOC_GridDlgTest
MOC_GridDlg.cpp:4:10: fatal error: stdafx.h: No such file or directory
    4 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
[khartm12@integrity MOC_Grid_BDE]$

Attempt 2:

[khartm12@integrity MOC_Grid_BDE]$ g++ MOC_GridDlg.cpp -o MOC_GridDlgTest
MOC_GridDlg.cpp:4:10: fatal error: stdafx.h: No such file or directory
    4 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
[khartm12@integrity MOC_Grid_BDE]$ g++ MOC_GridDlg.cpp -o MOC_GridDlgTest
In file included from MOC_GridDlg.cpp:5:
MOC_Grid.h:12:3: error: #error include 'stdafx.h' before including this file for PCH
   12 |  #error include 'stdafx.h' before including this file for PCH
      |   ^~~~~
MOC_GridDlg.cpp:14:10: fatal error: direct.h: No such file or directory
   14 | #include "direct.h"
      |          ^~~~~~~~~~
compilation terminated.
[khartm12@integrity MOC_Grid_BDE]$

Attempt 3:

see compile_errors2.txt tons of compile time error, unrelated to missing header files or undeclared header files.

Originally posted by @khartmansjsu in https://github.com/khartmansjsu/MOC-Linux/issues/1#issuecomment-1106734644

khartmansjsu commented 2 years ago

Action plan

  1. Use lines 503-547 of MOC_GridDlg.cpp as a template for a main.cpp file which will launch this whole MOC code on a linux system. It will make the call to the CreatMOCGrid function which sets into motion the calculation of the method of characteristics grid.
  2. Further debug this file, as it will likely not compile the first time because there are still many dependencies which need to be removed from the MOC_GridCalc_BDE.cpp script.