LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-01-2004, 10:40 AM   #1
divya
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Rep: Reputation: 0
how to solve parse errors in C program??


Hi,

I am getting Parse errors in a header file, which is written in C language. I am running it on LINUX OS. I checked the lines in which it is giving parse errors but I didn't find anyhting wrong. Can anybody tell me how to solve these errors?? is there any tools find out the parse errors or hidden characters ??? The output is

/usr/local/include/vipl.h:74: parse error before "VIP_UNIT64"
/usr/local/include/vipl.h:75: parse error before "VIP_UNIT32"
/usr/local/include/vipl.h:76: parse error before "VIP_UNIT16"
/usr/local/include/vipl.h:77: parse error before "VIP_UNIT8"
/usr/local/include/vipl.h:100: parse error before "VIP_MEM_HANDLE"
/usr/local/include/vipl.h:112: parse error before "VIP_UINT16"
/usr/local/include/vipl.h:114: parse error before "HostAddress"
/usr/local/include/vipl.h:115: parse error before '}' token
/usr/local/include/vipl.h:145: parse error before "VIP_UINT16"
/usr/local/include/vipl.h:146: parse error before '*' token
/usr/local/include/vipl.h:148: parse error before "MaxDiscriminatorLen"
/usr/local/include/vipl.h:162: parse error before '}' token
/usr/local/include/vipl.h:175: parse error before "VIP_UINT64"
/usr/local/include/vipl.h:177: parse error before '}' token
/usr/local/include/vipl.h:184: parse error before "VIP_PVOID64"
/usr/local/include/vipl.h:186: parse error before "SegCount"
/usr/local/include/vipl.h:187: parse error before "Control"
/usr/local/include/vipl.h:188: parse error before "Reserved"
/usr/local/include/vipl.h:189: parse error before "ImmediateData"
/usr/local/include/vipl.h:190: parse error before "Length"
/usr/local/include/vipl.h:191: parse error before "Status"
/usr/local/include/vipl.h:199: parse error before "VIP_PVOID64"
/usr/local/include/vipl.h:201: parse error before "Reserved"
/usr/local/include/vipl.h:209: parse error before "VIP_PVOID64"
/usr/local/include/vipl.h:211: parse error before "Length"
/usr/local/include/vipl.h:217: parse error before "VIP_ADDRESS_SEGMENT"
/usr/local/include/vipl.h:227: parse error before "VIP_CONTROL_SEGMENT"
/usr/local/include/vipl.h:229: parse error before '}' token
/usr/local/include/vipl.h:347: parse error before "VIP_DESCRIPTOR"
/usr/local/include/vipl.h:351: parse error before '}' token
/usr/local/include/vipl.h:387: parse error before "VIP_NET_ADDRESS"
/usr/local/include/vipl.h:389: parse error before '}' token
/usr/local/include/vipl.h:396: parse error before string constant


Thanks.

Last edited by divya; 04-01-2004 at 11:00 AM.
 
Old 04-01-2004, 10:44 AM   #2
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
What SDK is this...? Maybe others had it installed already?
 
Old 04-01-2004, 10:49 AM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Can you please post the output? I don't think anyone here is capable of mindreading.
 
Old 04-01-2004, 11:02 AM   #4
galvedro
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Rep: Reputation: 0
Hi,

you can possibly solve your problem opening the file with another editor. Vi, Vim, gvim, emacs or xemacs are trusted by a lot of people and they usually don't hide control characters. Try to open it with one of these, and see what happens.

Regards,

Antón
 
Old 04-01-2004, 11:19 AM   #5
divya
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Hi,

I opened that file with emacs editor I am nto seeing any control characters. Could you please tell me how to use that editor to solve those parse errors

Thanks,
divya
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cvscedega make errors: preloader.c has a parse error? c-- Linux - Software 1 03-06-2005 07:05 AM
Driver compile parse errors Livia Linux - General 1 02-18-2004 09:25 AM
pthread problems and parse errors Stabby Red Hat 1 01-28-2004 10:56 PM
newbie compile problem: parse errors reetep Programming 8 01-09-2004 10:40 AM
Parse errors in kernel.h using gcc 2.95 hate_msft Programming 2 07-24-2002 07:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration