-
Notifications
You must be signed in to change notification settings - Fork 762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error unless ACCEPT_USE_OF_DEPRECATED_PROJ_API_H is #define'd #836
Comments
We want to flag that proj_api_h is now deprecated. With this commit it is now mandatory to #define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H before proj_api.h can be included. proj_api.h is used internally a bunch of places. Therefore ACCEPT_USE_OF_DEPRECATED_PROJ_API_H has been defined in projects.h and a few other necessary files to ensure that PROJ compiles. Closes OSGeo#836
We want to flag that proj_api_h is now deprecated. With this commit it is now mandatory to #define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H before proj_api.h can be included. proj_api.h is used internally a bunch of places. Therefore ACCEPT_USE_OF_DEPRECATED_PROJ_API_H has been defined in projects.h and a few other necessary files to ensure that PROJ compiles. Closes OSGeo#836
We want to flag that proj_api_h is now deprecated. With this commit it is now mandatory to #define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H before proj_api.h can be included. proj_api.h is used internally a bunch of places. Therefore ACCEPT_USE_OF_DEPRECATED_PROJ_API_H has been defined in projects.h and a few other necessary files to ensure that PROJ compiles. Closes OSGeo#836
Hello, |
Does the problem go away if you what's suggested in this comment: https://github.com/postgis/postgis/pull/354/files#r242068366 |
Thank you. It's now working. |
Is there a way to define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H on the command line? For example: |
Maybe with:
|
Thank you for the suggestion, but it did not work (same error).
|
This should work: SciTools/cartopy#1289 (comment) |
That worked!
Thank you
…On Wed, Jul 24, 2019 at 11:42 AM Alan D. Snow ***@***.***> wrote:
This should work: SciTools/cartopy#1289 (comment)
<SciTools/cartopy#1289 (comment)>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#836?email_source=notifications&email_token=ACAG2DHXZBBGAYKWQFVKAZTQBBZ5TA5CNFSM4ETTSDT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2WX5SA#issuecomment-514686664>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACAG2DDYPRQTL5IA72SWSELQBBZ5TANCNFSM4ETTSDTQ>
.
|
append DACCEPT_USE_OF_DEPRECATED_PROJ_API_H to CFLAGS to allow the use of proj/api.h and reautospec the package to fix build failure. OSGeo/PROJ#836
…EPRECATED_PROJ_API_H should be #define'd in mapproject.c. NOTE: proj_api.h will not be included as a public header file from PROJ 7.0.0. see more detail in OSGeo/PROJ#836
From version 6.0.0
proj_api.h
will be deprecated.proj_api.h
will not be included as a public header file from PROJ 7.0.0 and onwards. We want to make that clear from version 6.0.0 by requiring that users that want to useproj_api.h
#define
a macro likeACCEPT_USE_OF_DEPRECATED_PROJ_API_H
. If the macro is not defined a compile-time error should be raised declaring that the user is including a deprecated API.The text was updated successfully, but these errors were encountered: