The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
pstat_getdisk() call doesn’t work properly in HPUX 11.31 (11i V3) sandiworld HP-UX 2 10-25-2007 07:39 AM
my case statement doesn't work.. sureshy UNIX for Dummies Questions & Answers 7 10-25-2002 11:25 AM
unmount doesn't work DISTURBED UNIX for Dummies Questions & Answers 2 07-04-2002 03:14 PM
grep doesn't work within shell script? barisgultekin Shell Programming and Scripting 4 05-24-2002 11:01 AM
Repquota doesn't work as Cronjob?!? b416 UNIX for Dummies Questions & Answers 1 04-14-2002 05:44 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-19-2001
Registered User
 

Join Date: Sep 2001
Posts: 2
why doesn't this work?????

i keep getting the following error with the code segment below when i try to compile the program.

parse error before '('
parse error before ')'
stray '\' in program

this is the code segment and the error is on the second line of the segment

#define DEBUG(fmt) if(traceflag) { \
fprintf(stderr, fmt, arg1); \
.
.
.

Thank you in advance to all who reply to this thread
Reply With Quote
Forum Sponsor
  #2  
Old 09-20-2001
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
Your syntax looks legal and I could not get it to fail. My best guess is that you have trailing whitespace characters after the backslash on the first line. The newline character on the first line must be immediately preceded by a backslash for this to work.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:11 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0