Author Topic: MCC18 V3.22 Syntax Error in Http.c: 642 +Windows XP 64 bit  (Read 3941 times)

chr158

  • Newbie
  • *
  • Posts: 2
    • View Profile
MCC18 V3.22 Syntax Error in Http.c: 642 +Windows XP 64 bit
« on: October 19, 2008, 02:10:40 AM »
Hi all,

Have just installed the demo version of the MCC18 v3.22 compiler and am getting a syntax error on code that previously compiled:

d:/mcc18/bin/mcc18.exe -Id:/mcc18/h -I. -Inet  -p18F6680 -sco -DHAS_BOOTLOADER -DBRD_SBC68EC net/http.c -fo net/http.o
MPLAB C18 v3.22 (demo)
Copyright 2000-2008 Microchip Technology Inc.
Days remaining until demo becomes feature limited:  60

WARNING:  The procedural abstraction optimization will not be supported when the demo becomes feature limited.

H:\Projects\websrvr68_v306\src\net\http.c:642:Error: syntax error
make: *** [net/http.o] Error 3


Code: [Select]
            //Try and open the requested resource. If not found, check if it is a zippable file. If it
                    //is, rename it to it's zipped filename, and try open that. For example, if "file.htm" was
                    //not found, try and open "file.zht"
                    ph->file = fileOpen(rqstRes, 0);
                    if ( !fileIsValidHandle(ph->file)) {
                        //If this is a zipped file type, we do the following:
                        if (isZippableFiletype(ph->var.get.fileType))
                        {
                            i = strlen((char *)rqstRes);

Offendling Line: if ( !fileIsValidHandle(ph->file)) {

Anyone else have the same problems ?
« Last Edit: October 21, 2008, 07:33:18 AM by chr158 »

evensteven69

  • Full Member
  • ***
  • Posts: 15
    • View Profile
Re: MCC18 V3.22 Syntax Error in Http.c: 642
« Reply #1 on: October 20, 2008, 03:44:02 PM »
Yes, I had this problem. Never nutted it out.... although...
I was running 64bit XP. I went over to 32bit XP and all worked well from then on.
However, I wasn't very scientific about it. It might have just been setup.
Would love to know the answer to this.

chr158

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: MCC18 V3.22 Syntax Error in Http.c: 642 (Windows XP 64bit)
« Reply #2 on: October 21, 2008, 07:32:30 AM »

Thanks for that. I was also running 64bit XP. Installed the compiler on laptop running 32bit XP - all looks good so far.

 :-)

Aletstero

  • Jr. Member
  • **
  • Posts: 9
    • View Profile
MCC18 V3 22 Syntax Error in Http c 642 Windows XP 64 bit
« Reply #3 on: December 27, 2009, 05:40:46 AM »
I assume you are using LV.  I cant find anything on that code either.  Just to verify, make sure you can ping the Camera.  Also, do you get this error code when you Open the Camera Reference as well?