Compilation errors

Hi,

i am getting the following compilation errors

(1) funxtion xyz must have a protoype.
(2) type abc is Incomplete.

xyz has a protoype that is defined in xyz.h which i have included in the main file.
Same for abc.

Can someone tell me waht the problem could be?

Thanks
dkamdarAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

brettmjohnsonCommented:
You will have to include the prototypes for xyz and abc here, including the surrounding
lines from the xyz.h file.  It is very likely that there is missing punctuation or closing
comment in the previous lines.

0
Jaime OlivaresSoftware ArchitectCommented:
maybe your header file has some "guards" like:

#ifndef XFILE_INCLUDED
#define XFILE_INCLUDED

  // all your header code here

#endif

So, to include sucefully a file, doesn't ensure you to "activate" all the code inside.
In the case shown, by example, maybe XFILE_INCLUDED is yet defined, avoiding to execute the inside code.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rstaveleyCommented:
> Can someone tell me waht the problem could be?

Namespace, perhaps? Typo (e.g. case)? Terrorist insurgency? Usual candidates. We'd need to see some code.
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

dkamdarAuthor Commented:
What is Terrorist insurgency?
0
Jaime OlivaresSoftware ArchitectCommented:
Some experts must be careful with jokes that can offend other members, since EE have thousand of non-occidental members.
Remember unfortunate words of George Bush: http://www.csmonitor.com/2001/0919/p12s2-woeu.html
A trivial word for an occidental could sound offensive for another people.
Just my opinion.
Jaime.
0
rstaveleyCommented:
dkamdar, here's a peer-reviewed definition of insurgency http://en.wikipedia.org/wiki/Insurgency . It was a lame attempt at humour. I appreciate where Jaime is coming from, but I would have thought that the absurdity of the comment was no more offensive to one cuture than another, and C++ without humour is just too dry to contemplate. Let's drop the subject though... I'm in danger of starting a flame war. Could you post some code, and I'll attempt to show you that I can be helpful, when I'm not jumping in political mine fields.
0
Jaime OlivaresSoftware ArchitectCommented:
Reading wikipedia link I've found Sabotage would be are more comprensible joke.
We are specultating about dkamdar's problem until he post code, but surely it's a trivial problem.

0
dkamdarAuthor Commented:
guys ... I am not offended.
I was actually asking if it did mean something technical ... i know ... dumb like that!

I appreciate both of your's concerns and gestures so lets end it here.

As far as the code goes ... i cannot post it in the forum ... belongs to my company ... lot of copyright crap ... dont wanna invite trouble :)

But this speculation by Jaime worked:

maybe your header file has some "guards" like:

#ifndef XFILE_INCLUDED
#define XFILE_INCLUDED

  // all your header code here

#endif

It did have some guards and i had to include another file that activated those gaurds.

peace :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.