Finding out a Parse error

This is a discussion on Finding out a Parse error within the C++ Programming forums, part of the General Programming Boards category; When compiling the following peice of code i get this. cc -O2 -m486 -fno-strength-reduce -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208104 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char ...

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    2

    Finding out a Parse error

    When compiling the following peice of code i get this.

    cc -O2 -m486 -fno-strength-reduce -DLINUX=22 -I/usr/include/db1 -DMOD_SSL=208104 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BOOL -I/usr/local/include -DEAPI -DBIG_SECURITY_HOLE -DCOBALT_RAQ_LED -fpic -DSHARED_MODULE -I/usr/include/apache -w -DJRUN_SSL -c mod_jrun.c
    In file included from mod_jrun.c:12:
    jrun_ssl.h:111: parse error before `if'
    jrun_ssl.h:111: stray '\' in program
    jrun_ssl.h:112: stray '\' in program
    jrun_ssl.h:113: stray '\' in program
    jrun_ssl.h:114: stray '\' in program
    jrun_ssl.h:115: parse error before `return'
    jrun_ssl.h:115: stray '\' in program
    apxs:Break: Command failed with rc=1


    And i have found the problem to be this peice of code the hole header is attached.

    ---Snip---
    #define JRUN_SSL_CHECK_FX_POINTER(fnPtr, ptrName) \

    if (!fnPtr) { \
    r->log(r,"Couldn't get address of %s, SSL not enabled.", ptrName); \
    r->perm_free(r, pThis); \
    pThis = NULL; \
    return pThis; \
    }
    ---Snip---
    Attached Files Attached Files

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Is that a blank line before the "if" statement?
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Registered User
    Join Date
    Apr 2003
    Posts
    2
    no, sorry

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. How to monitor process creation?
    By markiz in forum Windows Programming
    Replies: 31
    Last Post: 03-17-2008, 03:39 PM
  3. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM
  4. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 11:03 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21