[Gdal-dev] a question

Andrey Kiselev dron at ak4719.spb.edu
Tue Dec 2 10:03:23 EST 2003


On Mon, Dec 01, 2003 at 11:42:27PM +0800, junshi at mail.ustc.edu.cn wrote:
> I downloaded the jasper-1.700.5 and my operating system is windows 2000.
> 
> I am try to use Microsoft Visual C 6.0 to write a program in my
> research of Jpeg2000. But I met a problem. I used MSVC to bulid a
> dialog.I added all the h files in the directory
> ".../libjasper/include/jasper", the c files in the directory
> "".../libjasper/base" and the lib file "libjasper.lib" to my project.
> Then I added "#include <jasper/jasper.h>" in MytestDlg.cpp. In
> "Project->Settings->", I set all the c files in the directory
> "".../libjasper/base" as "Automatic use of precompiled headers" (or
> "Not using precompiled headers"). Then I built the program, but I foud
> eight errors. These are as followed:
> 
> d:Mytest\libjasper\include\jasper\jas_stream.h(131) : fatal error C1083:
> Cannot open include file: 'unistd.h': No such file or directory
> jas_init.c
> d:Mytest\libjasper\include\jasper\jas_types.h(157) : fatal error C1083:
> Cannot open include file: 'stdbool.h': No such file or directory
> jas_seq.c
> Others are the same.
> 
> What is the problem? Is it a bug? Would you kindly tell me how to
> solve it?

Hello,

The source of problems is jas_config.h file. The file is autogenerated
by the configure script in POSIX environment. In case of MSVC compiler
that file should be manually copied from the jas_config2.h. It is
handled automatically by the bundled MSVC project.

					Regards,
					Andrey

-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517



More information about the Gdal-dev mailing list