(no subject)

classic Classic list List threaded Threaded
2 messages Options
TSP
Reply | Threaded
Open this post in threaded view
|

(no subject)

TSP
I wish to use Geo TIFF library in an MFC (using Visual C++ 6) application. I downloaded both ordinary tiff and Geo Tiff libraries, each of which consists of dozens and dozens of files. I included all those files in an MFC project using Project|Add Files facility. Before writing a single line, I compiled but I am getting a lot of errors. Most errors refer to 'unexpected end of file while looking for precompiled header...' or such. I included stdafx.h as the first line in the files, but I'm getting different types of errors.

Can you kindly make me clear on how to use the two libraries; if you write the same in the website it will reach a wide audience. Also examples on how to read and write TIFF as well as Geo TIFF will be welcome. Though some example is given in documentation, I am feeling shaky. My e-mail is [hidden email]

With many thanks,

Yours sincerely,
T.S. Prasad

_______________________________________________
Geotiff mailing list
[hidden email]
http://lists.maptools.org/mailman/listinfo/geotiff
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

Frank Warmerdam
TSP wrote:

> I wish to use Geo TIFF library in an MFC (using Visual C++ 6)
> application. I downloaded both ordinary tiff and Geo Tiff libraries,
> each of which consists of dozens and dozens of files. I included all
> those files in an MFC project using Project|Add Files facility. Before
> writing a single line, I compiled but I am getting a lot of errors. Most
> errors refer to 'unexpected end of file while looking for precompiled
> header...' or such. I included stdafx.h as the first line in the files,
> but I'm getting different types of errors.
>
> Can you kindly make me clear on how to use the two libraries; if you
> write the same in the website it will reach a wide audience. Also
> examples on how to read and write TIFF as well as Geo TIFF will be
> welcome. Though some example is given in documentation, I am feeling
> shaky. My e-mail is [hidden email]

T.S. Prasad,

Building libtiff on windows is addressed at:

   http://www.remotesensing.org/libtiff/build.html

Scan down to the section titled "Building the Software under Windows ..."

It is not the project practice of libtiff or libgeotiff to provide
MS Visual Studio project files.  You cannot just add all the source
to a project as you must be careful to exclude non-default code and to
prepare some include files that are platform specific and normally
generated.  However, examining the makefile.vc's should be reasonably
instructive in terms of what files are required and what preparatory
steps are appropriate.

Normally folks build libtiff and libgeotiff using the makefile.vc's
and then link their applications to the resulting .lib files (or the
stub libraries if they want to use the DLLs).

Some care should be taken to use compatible build options in makefile.vc
to those used in the primary project.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, [hidden email]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

_______________________________________________
Geotiff mailing list
[hidden email]
http://lists.maptools.org/mailman/listinfo/geotiff