Re: help me to resolve these errors please



deepu wrote:
>
> hi,
> can any one of u help me in resolving these errors.
>
> ip_arp_v4.pr.tmp.c
> C:\PROGRA~1\OPNET\10.5.A\sys\include\ip_arp_v4.h(78) : error C2143:
> syntax error : missing ')' before '('
> C:\PROGRA~1\OPNET\10.5.A\sys\include\ip_arp_v4.h(78) : error C2091:
> function returns function
[many error messages snipped]


> here is the code.
>
> /** Packet has arrived from the higher layer. **/
> /** Address mapping corresponding to next hop's **/
> /** IP address is obtained either from the global **/
> /** table or from the ARP cache depending upon the **/
> /** ARP sim efficiency mode's value and packet is **/
> /** sent to the data link layer. **/
>
> /* Obtain the packet and the accompanying ICI. */
> pkptr = op_pk_get (intrpt_strm);
> if (pkptr == OPC_NIL)
> ip_arp_error ("Unable to get packet from input stream.");
[many source lines snipped]

The error messages refer to specific source lines. The first error
messages were for a header file that you apparently did not post.
Load up the mentioned source files, go to the specific line number in
the error message, use the message as a hint as to what the error
might be, and see if you can find it. Sometimes an error will be
caused by a preceding line, such as a missing semicolon, unterminated
comment or string, etc. The actual error might even be in a different
file, in the case of a header file message.

In general, it is better to start with the first error message, since
initial errors have a way of causing subsequent error messages on
lines that won't contain errors when the earlier error is fixed.

--
Thad
.



Relevant Pages

  • error C2143
    ... I'm getting these error messages when I try to build. ... header file and don't see anything wrong. ... class errorDialog: public CDialog ... control\errordialog.h: fatal error C1004: unexpected end of file found ...
    (microsoft.public.vc.mfc)
  • Re: Problems with CLAPACK SVD routines on OS X
    ... So that he does not generate all the error messages below! ... Obviously, the header file contains needed definitions, in the absence of which compilation will not be successful. ... but incomplete type ...
    (sci.math.num-analysis)
  • Re: Locating header files
    ... When I try to include this header file with #include "tkMacOSXInt.h," gcc 4.0.1 complains that the header file can't be found. ... When I hard-code a path to the header file in my makefile, I get error messages like this: ... Would I be better off using the TEA process to build the extension? ... Unfortunately, the only way for my extension to work is to get at one field of the MacDrawable struct, otherwise it simply fails silently. ...
    (comp.lang.tcl)
  • Re: error C2143
    ... "JoeB" wrote: ... >> I'm getting these error messages when I try to build. ... >> header file and don't see anything wrong. ...
    (microsoft.public.vc.mfc)
  • Re: Problems with Error Handling
    ... || die "Got error $DBI::errstr when connecting to ... I expect that the program should NOT print any of the error messages, break out of the eval block after the first error, and NOT commit the transaction but roll it back. ... Disabling the "PrintError" message is supposed to prevent the error ...
    (perl.dbi.users)

Loading