error 1000: Unexpected symbol


 
Thread Tools Search this Thread
Operating Systems HP-UX error 1000: Unexpected symbol
# 8  
Old 02-18-2009
waiting for you replies

Last edited by junaid.nehvi; 02-18-2009 at 01:42 AM..
# 9  
Old 02-18-2009
Can you type model, so we know what you are on (32 or 64 bit box)?
# 10  
Old 02-18-2009
I am no C developper, and rarely compile using ansic, but I remember HP compiler does not like at all variables definitions that are not initialized... other compilers (IBM...) dont care ( I suspect they do the job for you.. (But not always and you can end with odd results...)

Now you could try and download a GCC bundle and give a try ( I do for GNU stuff).

What puzzles me also is the ownership of your transition link /usr/bin/cc,there are others:
/bin/cc -> /opt/ansic/bin/cc
/lib/ccom -> /opt/ansic/lbin/ccom
/bin/c89 -> /opt/ansic/bin/c89

/usr/bin/cb -> /opt/ansic/bin/cb
/usr/bin/cflow -> /opt/ansic/bin/cflow
/usr/bin/cxref -> /opt/ansic/bin/cxref
/usr/bin/endif -> /opt/ansic/bin/endif
/usr/bin/lint -> /opt/ansic/bin/lint
/usr/bin/protogen -> /opt/ansic/bin/protogen
/usr/lib/dag -> /opt/ansic/lbin/dag
/usr/lib/flip -> /opt/ansic/lbin/flip
/usr/lib/lint2 -> /opt/ansic/lbin/lint2
/usr/lib/lpfx -> /opt/ansic/lbin/lpfx
/usr/lib/nmf -> /opt/ansic/lbin/nmf

go and check what is in /opt/ansic, it should all be bin:bin r-xr-xr-x
# 11  
Old 02-18-2009
Quote:
JIM:
Please can you tell me which compiler i can get installed so that i can compile the code sucessfully.
If your compiler accepts -Ae option, you have the advanced compiler.
gcc is also available for HP UX 11.11 - I don't think it will help
Porting And Archive Centre For HP-UX

The error 1000 is: a misplaced or mismatched pair of {} characters.
Does your editor do bracket matching? Try to find the curly bracket that matches the one it is complaining about - then look to see if the correct curly bracket is available.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

IF section problem. syntax error: unexpected end of file error

Hello, I have another problem with my script. Please accept my apologies, but I am really nooby in sh scripts. I am writing it for first time. My script: returned=`tail -50 SapLogs.log | grep -i "Error"` echo $returned if ; then echo "There is no errors in the logs" fi And after... (10 Replies)
Discussion started by: jedzio
10 Replies

2. Programming

gmake undefined symbol error

I have a C code which i am trying to compile using gcc. When i am trying to compile it i get the error undefined symbol error though i am providing the -l*** option where *** refers to the module where the object files for those symbols are present. Can someone help me on the same. (4 Replies)
Discussion started by: manaankit
4 Replies

3. Solaris

/usr/lib/passwdutil.so.1: symbol __nsl_fgetspent_r: referenced symbol not found

deleteing post (0 Replies)
Discussion started by: dshakey
0 Replies

4. Shell Programming and Scripting

Cron Job : unexpected symbol

Hello Experts, I am trying to setup a crontab with 2 jobs but getting the familiar error 0481-079 Reached a symbol that is not expected I would like to know if the below code is the only way to show a fixed interval. Don't we have something more efficient. ... (2 Replies)
Discussion started by: hkansal
2 Replies

5. Shell Programming and Scripting

sed error : Syntax error: redirection unexpected

My script is throwing the error 'Syntax error: redirection unexpected' My line of code.. cat nsstatustest.html | sed s/<tr><td align="left">/<tr><td align="left" bgcolor="#000000"><font color="white">/ > ztmp.Ps23zp2s.2-Fpps3-wmmm0dss3 HTML tags are getting in the way but they're needed to... (3 Replies)
Discussion started by: phpfreak
3 Replies

6. Programming

undefined symbol: clock_gettime' error

Hi, i've compiled my app on x86_64 with -m32 gcc option. Can anybody tell me what is/would typically cause the 'undefined symbol: clock_gettime' error?? -1 k){0N!x y} '/home/da71336/simon/mkvfh/mkv.so: undefined symbol: clock_gettime @ "q" "subr:mkv 2:`subr,3; subc:mkv 2:`subc,1;... (4 Replies)
Discussion started by: dpa078
4 Replies

7. Programming

Symbol referencing error

Hey everyone, I can't figure out this symbol referencing error after looking at it for the longest time, and I figured some fresh eyes might be able to point something out I am overlooking. Undefined first referenced symbol in... (1 Reply)
Discussion started by: fromatz
1 Replies

8. UNIX for Dummies Questions & Answers

awk Shell Script error : "Syntax Error : `Split' unexpected

hi there i write one awk script file in shell programing the code is related to dd/mm/yy to month, day year format but i get an error please can anybody help me out in this problem ?????? i give my code here including error awk ` # date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies

9. Programming

symbol referencing error

Undefined first referenced symbol in file std::basic_ostream<char, std::char_traits<char> >::operator<<(int)/var/tmp//ccTR std::cerr /var/tmp//ccTRcjui.o std::cout /var/tmp//ccTRcjui.o... (1 Reply)
Discussion started by: suhasini
1 Replies

10. AIX

Error - Symbol Resolution Failed

Hi All, I am trying to run sqlplus on my AIX 5L box but following errors are thrown: $ sqlplus exec(): 0509-036 Cannot load program sqlplus because of the following errors: 0509-130 Symbol resolution failed for /usr/lib/libc.a because: 0509-136 Symbol kaio_rdwr64 (number 0)... (5 Replies)
Discussion started by: run_time_error
5 Replies
Login or Register to Ask a Question