# GMX\_INSTALL\_LEGACY\_API does not include command-line header files in 2021 version

**URL:** <https://gromacs.bioexcel.eu/t/gmx-install-legacy-api-does-not-include-command-line-header-files-in-2021-version/2868>\
**Category:** User discussions\
**Created:** [September 24, 2021, 1:08pm UTC](https://gromacs.bioexcel.eu/t/gmx-install-legacy-api-does-not-include-command-line-header-files-in-2021-version/2868 "2021-09-24T13:08:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjdkmr](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/rjdkmr/32/1081_2.png) [@rjdkmr](https://gromacs.bioexcel.eu/u/rjdkmr)\
**Post date:** [September 24, 2021, 1:08pm UTC](https://gromacs.bioexcel.eu/t/gmx-install-legacy-api-does-not-include-command-line-header-files-in-2021-version/2868/1 "2021-09-24T13:08:05Z")

</div>

GROMACS version: 2021  
GROMACS modification: No

Hi,

I am trying to compile a code which calls function “gmx\_run\_cmain”. However, the header file “cmdlineinit.h” is missing. I build the Gromacs with “-DGMX\_INSTALL\_LEGACY\_API=on”. Other headers like “pargs.h” and “filenm.h” are also missing.

I looked into “src/gromacs/commandline/CMakeLists.txt” and “GMX\_INSTALL\_LEGACY\_API” option is completely missing. I do not know whether it is intentional, however, without these files, the code written for older Gromacs version cannot be compiled.

Please let me know, whether these files are installed in some other location.

With best regards,  
Rajendra

---

<div class="post-metadata">

**Author:** ![hess](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/hess/32/416_2.png) [@hess](https://gromacs.bioexcel.eu/u/hess)\
**Post date:** [September 29, 2021, 7:22am UTC](https://gromacs.bioexcel.eu/t/gmx-install-legacy-api-does-not-include-command-line-header-files-in-2021-version/2868/2 "2021-09-29T07:22:54Z")

</div>

Files in the directory commandline are no longer part of the legacy API. I don’t know why this decision was made. I will ask other developers.
