One Problem in Calling Static function from Non static function 
Author Message
 One Problem in Calling Static function from Non static function

Problem :

In a.c I make a function

void activation(OCTET * number,OCTET port);
{
  //Here Iam calling another static function:
 activation_by_service( data_ptr->number,Service,
                              data_ptr->port);

Quote:
}

In the main.h(i.e will be included in all the modules)

I did the Following:

extern void activation(OCTET*,OCTET);

When Iam trying to do the following in c.c:
#if a
activation(NULL,1);  //100 errors persists while  in b.c it is
executed with no error..
#endif

Anybody encounteredd such type of problems please help me..

Regds
Sobhan



Sat, 04 Dec 2004 20:14:06 GMT  
 One Problem in Calling Static function from Non static function

Quote:
> Problem :

> In a.c I make a function

> void activation(OCTET * number,OCTET port);
> {
>   //Here Iam calling another static function:
>  activation_by_service( data_ptr->number,Service,
>                               data_ptr->port);

> }
> In the main.h(i.e will be included in all the modules)

> I did the Following:

> extern void activation(OCTET*,OCTET);

> When Iam trying to do the following in c.c:
> #if a
> activation(NULL,1);  //100 errors persists while  in b.c it is
> executed with no error..
> #endif

> Anybody encounteredd such type of problems please help me..

Yes, when I typed in things falsly. Probably you want to show
us the relevant parts from the code and also the diagnostic
message of your compiler (if there are more than 10, the first
10 will be sufficient, I think).

--

"LISP  is worth learning for  the profound enlightenment  experience
you will have when you finally get it; that experience will make you
a better programmer for the rest of your days."   -- Eric S. Raymond



Sat, 04 Dec 2004 20:56:54 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Accessing non-static functions from a static function

2. Pointers to non-static vs static functions

3. Static array containing non static objects and functions

4. static functions and non static variables

5. static functions with non-static variables!

6. illegal call of non-static member function

7. Calling non-static function...

8. illegal call of non-static member function

9. illegal call of non-static member function *HELP*

10. iilegal call of non-static member function

11. illegal call of non-static member function

12. Illegal call of non-static member function (error)?

 

 
Powered by phpBB® Forum Software