User Tools

Site Tools


windows_compilation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
windows_compilation [2009/10/09 15:32]
bp added __ENABLE_COMPONENT_LABELS define
windows_compilation [2010/10/21 17:46] (current)
bp
Line 6: Line 6:
   - In the oofem top directory, create src/config directory. Download [[http://​mech.fsv.cvut.cz/​~bp/​download/​oofem-win/​oofemcfg.h|oofemcfg.h]] and [[http://​mech.fsv.cvut.cz/​~bp/​download/​oofem-win/​oofemdef.h|oofemdef.h]] files into this directory. ​   - In the oofem top directory, create src/config directory. Download [[http://​mech.fsv.cvut.cz/​~bp/​download/​oofem-win/​oofemcfg.h|oofemcfg.h]] and [[http://​mech.fsv.cvut.cz/​~bp/​download/​oofem-win/​oofemdef.h|oofemdef.h]] files into this directory. ​
   - Add all source files, located in src/​oofemlib,​ src/​oofemlib/​xfem,​ src/config, src/sm, src/tm, src/fm, and src/dss sub-directories,​ into the project.   - Add all source files, located in src/​oofemlib,​ src/​oofemlib/​xfem,​ src/config, src/sm, src/tm, src/fm, and src/dss sub-directories,​ into the project.
 +  - Add also src/​main/​main.C and src/​main/​usrdefsub.C files.
   - In the project settings [Menu:​Project->​Properties,​ select Configuration Properties->​C/​C++->​Advanced->​Compile As), ** add "/​TP"​ compiler option**. This will force "​.C"​ files to be recognized as c++ files. Make sure, that you set this option for all targets.   - In the project settings [Menu:​Project->​Properties,​ select Configuration Properties->​C/​C++->​Advanced->​Compile As), ** add "/​TP"​ compiler option**. This will force "​.C"​ files to be recognized as c++ files. Make sure, that you set this option for all targets.
   - Under Project Configuration Properties->​C/​C++->​General,​ add **all subdirectories under scr directory** to the “Additional Include Directories” item.   - Under Project Configuration Properties->​C/​C++->​General,​ add **all subdirectories under scr directory** to the “Additional Include Directories” item.
windows_compilation.txt · Last modified: 2010/10/21 17:46 by bp