Re: Help required on this error
Posted in 1994
Topics: Stored Procedures & SPL, Error Codes & Troubleshooting, Connectivity: ESQL/C, 4GL & Embedded SQL
In article <1994Mar17.123838.3425@lmpsbbs.comm.mot.com>, ramsub@miel_019.miel.mot.com (`subbu`) writes: |> We have the following piece of code : |> |> MAIN |> DEFINE |> total_hr_tables INTEGER |> WHENEVER ERROR GO TO :err |> |> CALL PmDpGetCount(total_hr_tables) |> LABEL err: |> DISPLAY " error in dummy main driver. terminating. " |> END MAIN |> |> |> FUNCTION PmDpGetCount(total_hr_tables) |> |> DEFINE |> total_hr_tables INTEGER |> WHENEVER ERROR CONTINUE |> |> END FUNCTION # PmDpGetCount |> |> |> Actually the code was larger, but we whittled it down to the above. |> |> The makefile: |> |> target : PmDpGetCount.exe |> |> PmDpGetCount.exe : main.4m4 |> m4 main.4m4 > getcount.4gl |> c4gl getcount.4gl -o PmDpGetCount.exe |> rm -f *.ec *.c *.4gl 2> /dev/null |> |> |> We are Getting the following output : |> |> m4 main.4m4 > getcount.4gl |> c4gl getcount.4gl |> getcount.c |> getcount.c(128) : error C2094: label 'err' was undefined |> *** Error code 1 |> |> |> COnfiguration: |> |> 486 PC running SCO UNIX 3.2 |> |> INFORMIX 5.0, 4GL 4.0 |> |> |> Help solicited, and will be rewarded with the purest gratitude. |> |> |> Ramsub One addition, when you remove the parameter total_hr_tables from both the function MAIN as well as the function PmDpGetCount, the error goes off. Leaving the definition only (not the parameter) in PmDpGetCount also gives no error. Somehow the parameter seems to be messing things up. Thanks, Ramsub