Skip to content

Change FORTRAN_STRLEN type in installed headers.#1181

Merged
langou merged 4 commits intoReference-LAPACK:masterfrom
ACSimon33:fortran_strlen_type
Jan 13, 2026
Merged

Change FORTRAN_STRLEN type in installed headers.#1181
langou merged 4 commits intoReference-LAPACK:masterfrom
ACSimon33:fortran_strlen_type

Conversation

@ACSimon33
Copy link
Contributor

Description

Some time ago I introduced the FORTRAN_STRLEN type to make the type of the hidden strlen arguments configurable because the NAG Fortran compiler uses int instead of size_t. The headers that are installed are still using the size_t definition and the user would need to define FORTRAN_STRLEN each time they compiler and link against the LAPACK lib built with nagfor. To fix that the type is now changed in the installed header if it differs from size_t.

Additionally I fixed the include of cblas_mangling.h. It was included in cblas.h but only used by cblas_f77.h.

The lapack.h and cblas_f77.h are now also installed when LAPACKE and CBLAS are not enabled. They don't need the LAPACKE or CBLAS libraries and could be used independently. If you are not happy with that change let me know and I'll revert it.

@langou langou merged commit 4327756 into Reference-LAPACK:master Jan 13, 2026
12 checks passed
@ACSimon33 ACSimon33 mentioned this pull request Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants