Troubleshooting Error in .cc File: Missing '/' or '\

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 3K views
Messages
6,735
Reaction score
2,437
I have this in my .cc file:

#ifndef __FASTJET_FASTJET_BASE_HH__
#define __FASTJET_FASTJET_BASE_HH__

// define this for easier readability (and obfuscation?) in
// a range of places
#define FASTJET_BEGIN_NAMESPACE namespace fastjet{
#define FASTJET_END_NAMESPACE}

#endif // __FASTJET_FASTJET_BASE_HH__

When Iam trying to run the file, the prompt says:

Error: Missing one of '
\/' expected at or after line 37.

And I have NO idea what Iam suppose to fix =/
 
Physics news on Phys.org
Did you mean in your *.hh file? And what do you mean by "run the file"?

It's kind of hard to guess what the problem is when you don't even quote line 37; a few lines before that might even be necessary!
 
Hurkyl said:
You can't run C++ source code... you have to compile & link them into an executable, and then run the executable...


Iknow, I just wanted to ask what error I have made in the code.
 
Post at least 5 lines before line 37 too.