•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 391,593 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,665 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser:
Views: 863 | Replies: 1
![]() |
•
•
Join Date: Aug 2005
Posts: 11
Reputation:
Rep Power: 4
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:
#ifndef _SERVICE_H__
#define _SERVICE_H__
#include "nm.h"
#include "ServiceProvider.h"
class Service
{
public:
virtual ULONG register(ServiceProvider *sp);
};
#endifgcc gives me error: /export/home/levk/r2/Service.h:10: error: parse error before `*' token
Here's my whole ServiceProvider.h:
#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
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
- internal compiler error (C++)
- Linker error in borland turboc3 compiler.need help in desperation (C++)
- Borland compiler error (C++)
- HELP- internal compiler error? (C++)
- Compiler error (C++)
- visual c++ strange compile 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?


Linear Mode