home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!decwrl!access.usask.ca!skorpio!srikant
- From: srikant@skorpio.usask.ca (Srikant Subramaniam)
- Subject: Problem with sproc()
- Message-ID: <1992Sep3.223815.20484@access.usask.ca>
- Sender: srikant@skorpio (Srikant Subramaniam)
- Nntp-Posting-Host: skorpio.usask.ca
- Organization: University of Saskatchewan, Saskatoon, Canada
- Date: Thu, 3 Sep 1992 22:38:15 GMT
- Lines: 40
-
- Hello:
-
- I've been unable to figure this compiler error :-( Could somebody pl help?
-
- Code fragment follows:
- -----------------------
-
- class Worker {
- ..
- ..
- public: Worker() {
- ....
- sproc(get_to_work, PR_SALL); // ERROR HERE
- ...
- }
-
- void get_to_work() {
- ...
- ..
- }
- } // Class Worker
-
- When I compile this code, I get these errors:
-
- 1. error: bad argument 1 type for sproc(): void (Worker::*)() ( void (*)(void *)
- expected) (in the line marked as "ERROR HERE" above.)
-
- Thanks ...
-
- --
- -----
- |\/\/\/| Srikant Subramaniam.
- | | srikant@cs.usask.ca
- | |
- | | Disclaimer: This is not what really I look like.
- | (o)(o) Disclaimer: I didn't do it, nobody saw me do it,
- C _) can't prove anything.
- | ,___|
- | /
- /---\
-