This is a very incomplete list of how to configure eclipse environment to code, build and execute PowerDEVS models. It is AS IS, but might help. Please send any additional steps or feedback.
Enable building PowerDEVS models from eclipse
At the end create a new “build configuration” to be able to build from eclipse (PD must create the Makefile according to the editor conections):
1. Proyect --> Build Configuration --> Manage --> new
2. Copy from “Default”, then OK/Apply
3. Proyect --> properties --> C/C++ build -> [tab] Builder Settings
4. unclik the “generate makefile automatically
5. Set build location to the build folder inside PD. For exaple: ${workspace_loc:/tdaq-simulation/build}
C++11 support in Eclipse Kepler Service Release 1 (Build id: 20130919-0819)
In the latest release Eclipse Kepler SR1 you only have to add -std=c++11
1. Right click on your project and click Properties
2. Navigate to C/C++ General and Preprocessor Include Paths, Macros etc.
3. Select the Providers tab
4. Add -std=c++11 to Command to get compiler specs:
5. Apply changes, the Index should be generated automatically.
The "Command to get compiler specs:"-line should look like:
${COMMAND} -E -P -v -dD "${INPUTS}" -std=c++11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is a very incomplete list of how to configure eclipse environment to code, build and execute PowerDEVS models. It is AS IS, but might help. Please send any additional steps or feedback.
Cheers
Enable c++11 support
Enable building PowerDEVS models from eclipse
At the end create a new “build configuration” to be able to build from eclipse (PD must create the Makefile according to the editor conections):
1. Proyect --> Build Configuration --> Manage --> new
2. Copy from “Default”, then OK/Apply
3. Proyect --> properties --> C/C++ build -> [tab] Builder Settings
4. unclik the “generate makefile automatically
5. Set build location to the build folder inside PD. For exaple: ${workspace_loc:/tdaq-simulation/build}
C++11 support in Eclipse Kepler Service Release 1 (Build id: 20130919-0819)
In the latest release Eclipse Kepler SR1 you only have to add -std=c++11
1. Right click on your project and click Properties
2. Navigate to C/C++ General and Preprocessor Include Paths, Macros etc.
3. Select the Providers tab
4. Add -std=c++11 to Command to get compiler specs:
5. Apply changes, the Index should be generated automatically.
The "Command to get compiler specs:"-line should look like:
${COMMAND} -E -P -v -dD "${INPUTS}" -std=c++11