Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
63 user(s) are online (45 user(s) are browsing Forums)

Members: 0
Guests: 63

more...

Headlines

Report message:*
 

Re: SDL2

Subject: Re: SDL2
by SinanSam460 on 2021/4/24 11:45:33

@Capehill

Ok..Now just 2 errors left.


Sinan@LENOVO /amiga/roketz3d
ppc-amigaos-g++ -athread=native *.cc -o Rocket -lGL -lGLU -lSDL2_mixer -lSDL2 -lSDL2_image -ltiff -lpng -ljpeg -lmikmod -lmodplug -lFLAC -lvorbisfile -lsmpeg2 -lsmpeg -lvorbis -logg -lwebp -lpthread -lmpg123 -lz -lm
main
.ccIn function ‘int write_to_jpeg_file(intintunsigned char*, FILE*, int):
main.cc:356:36errorcannot convert ‘bool’ to ‘boolean’
  356 
|  jpeg_set_quality(&cinfoqualitytrue /* limit to baseline-JPEG values */);
      |                                    ^~~~
      |                                    |
      |                                    
bool
In file included from main
.cc:17:
/
usr/local/amiga/ppc-amigaos/SDK/local/common/include/jpeglib.h:991:31note:   initializing argument 3 of ‘void jpeg_set_quality(j_compress_ptrintboolean)
  991 
EXTERN(voidjpeg_set_quality JPP((j_compress_ptr cinfoint quality,
      |                               ^~~
main.cc:363:33errorcannot convert ‘bool’ to ‘boolean’
  363 
|     jpeg_start_compress(&cinfotrue);
      |                                 ^~~~
      |                                 |
      |                                 
bool
In file included from main
.cc:17:
/
usr/local/amiga/ppc-amigaos/SDK/local/common/include/jpeglib.h:1010:34note:   initializing argument 2 of ‘void jpeg_start_compress(j_compress_ptrboolean)
 1010 
EXTERN(voidjpeg_start_compress JPP((j_compress_ptr cinfo,
      |                                  ^~~

When I look at jpeglib.h at SDK.. Lines 991 and 1010 shows these:

EXTERN(voidjpeg_set_quality JPP((j_compress_ptr cinfoint quality,boolean force_baseline));

EXTERN(voidjpeg_start_compress JPP((j_compress_ptr cinfoboolean write_all_tables));


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project