GP32 Far.. So Far Away.. :)


Alessandro

Member
Joined
Apr 2, 2004
Messages
127
Age
46
Location
Liguria, Italy
Website
Visit site
:huh: ?
Hi guys
I'm trying to use the jpeglib that comes with GPFM, but when I try to compile it I get this errors:

jpeglib.h:89: parse error before "FAR"

in the source file I see this line @89=

typedef JSAMPLE FAR *JSAMPROW;

I'm using the devkitadv to compile, but it seems I've no luck with this lib :(

Thanks for your help

Later
Alessandro
 
In your example, you posted the wrong line of code, if you notice the error says the parse error is BEFORE that line, if you post the few lines before it, that would be easier to understand what it is your doing.

Also check your comment types. Depending on your compiler, and settings, the // comment style may not work. This is the most common error I get when using images and sound converted to an array from one of the dev apps. Make sure your compiler and settings supports the format of comments you use.

Like, by default, devkitadv doesnt allow // only /* */
 
No, it's not a comments problem, but perhaps something related to the FAR keyword..
I know it's not a native C keyword, and I have this error even in other sources :(

I've managed the devkit to support also the // comments, just remove the "-ansi" in the makefile (Daz Genetic told me). Plus the lines before the one I pasted ends with

*/

so, no comment trouble.. :blink:

Still wondering...
Alessandro

(too FAR from the solution)
 
I messed with some JPG code, too. There was one library called TinyJpeg that was very good and fast, but it wouldn't handle all JPG files. In particular, it would choke on the ones that my Olympus camera took, because it had small thumbnail pictures inside of the actual JPG file.

For JpegView I settled on the source code from the Independant JPEG Group. It was easy to use and it seemed to handle everything perfectly. It was also easy to get in touch with the author.

If you want to consider using either of these, get in contact with me. I should have code for both of 'em for use with DevKitAdv.
 
"near" and "far" used to be needed in DOS compilers to deal with segmenting and such, so some libaries still have macros to allow for insertion or removal of those keywords. Nowadays, you just make sure nothing goes in there..

#define FAR

Should do it, if this is it.

jeff
 
I gave up :(

I think it will be nice if someone who has a working JPEG lib could post it in the Library downloads section on GP32x ;)

I think I'll wait for that.... maybe for years :(

Later
Alessandro
 
Back
Top