| | |
Stupid compiler error
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Aug 2005
Posts: 11
Reputation:
Solved Threads: 0
this is probably something extremely stupid but I can't fix it no matter what I try
I have a "Service.h" file that looks like this:
gcc gives me error: /export/home/levk/r2/Service.h:10: error: parse error before `*' token
Here's my whole ServiceProvider.h:
<< moderator edit: added [code][/code] tags >> - thank you, I was wondering how to do that
ULONG is int (#define ULONG int in nm.h). I've tried not having any arguments for the register function (so I put void there), but I get the same error except it says it's before the void token.
Please help. Thank you in advance
I have a "Service.h" file that looks like this:
C Syntax (Toggle Plain Text)
#ifndef _SERVICE_H__ #define _SERVICE_H__ #include "nm.h" #include "ServiceProvider.h" class Service { public: virtual ULONG register(ServiceProvider *sp); }; #endif
gcc gives me error: /export/home/levk/r2/Service.h:10: error: parse error before `*' token
Here's my whole ServiceProvider.h:
C Syntax (Toggle Plain Text)
#ifndef _SERVICEPROVIDER_H__ #define _SERVICEPROVIDER_H__ #include "ace/Reactor.h" typedef ACE_Reactor ServiceProvider; #endif
ULONG is int (#define ULONG int in nm.h). I've tried not having any arguments for the register function (so I put void there), but I get the same error except it says it's before the void token.
Please help. Thank you in advance
![]() |
Similar Threads
- visual c++ strange compile error... (C++)
- Borland compiler error (C++)
- internal compiler error (C++)
- Linker error in borland turboc3 compiler.need help in desperation (C++)
- HELP- internal compiler error? (C++)
- Compiler error (C++)
Other Threads in the C Forum
- Previous Thread: Pointer question
- Next Thread: Is it possible to have a template as an argument to a function?
| Thread Tools | Search this Thread |
Tag cloud for C
adobe ansi api array arrays asterisks bash binarysearch calculate centimeter char convert copyanyfile copyimagefile copypdffile cprogramme createcopyoffile csyntax directory dynamic fflush file fork frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hacking hardware highest homework i/o inches incrementoperators infiniteloop initialization interest km lazy linked linkedlist linux linuxsegmentationfault list locate logical_drives match matrix meter microsoft motherboard multi mysql number open opendocumentformat opensource owf pattern pdf performance pointer pointers posix power problem probleminc program programming pyramidusingturboccodes read recursion recv repetition scanf scheduling scripting segmentationfault send shape socketprograming spoonfeeding stack standard string strings structures suggestions systemcall test testautomation unix user variable voidmain() wab win32api windows.h





