Skip to content
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

space.c GCTPC prototypes conflict with GCTPC 2.0 #13

Open
GoogleCodeExporter opened this issue Apr 20, 2015 · 2 comments
Open

space.c GCTPC prototypes conflict with GCTPC 2.0 #13

GoogleCodeExporter opened this issue Apr 20, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Build lndsr with http://edcftp.cr.usgs.gov/pub/software/gctpc/gctpc20.tar
2.
3.

What is the expected output? What do you see instead?

I get the error:

INFO: From Compiling third_party/ledaps/lndsr/space.c:
third_party/ledaps/lndsr/space.c:101:5: error: conflicting types for 'for_init'
int for_init( int outsys, int outzone, double *outparm, int outdatum,
    ^
third_party/gctpc/source/proj.h:164:6: note: previous declaration is here
void for_init(long outsys, long outzone, double *outparm, long outspheroid,
     ^
third_party/ledaps/lndsr/space.c:104:5: error: conflicting types for 'inv_init'
int inv_init( int insys, int inzone, double *inparm, int indatum,
    ^
third_party/gctpc/source/proj.h:197:6: note: previous declaration is here
void inv_init(long insys, long inzone, double *inparm, long inspheroid,
     ^
2 errors generated.


What version of the product are you using? On what operating system?

LEDAPS (r122) on 64bit Linux. 


Please provide any additional information below.

Original issue reported on code.google.com by warmerdam@google.com on 1 Aug 2013 at 6:49

@GoogleCodeExporter
Copy link
Author

It seems like since proj.h provides the prototypes for these functions it 
should not be necessary to provide them in space.c.  I propose the attached 
patch though I've not yet tested it with the gctpc built into hdfeos. 

Original comment by warmerdam@google.com on 1 Aug 2013 at 6:53

@GoogleCodeExporter
Copy link
Author

Original comment by warmerdam@google.com on 1 Aug 2013 at 6:54

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant