473,405 Members | 2,141 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

error C2143: syntax error : missing ';' before '*'

Hi all,

how to remove the following complle error.
When I compiling the code I get the following errors:
Compiling...
CDrtEachDefFeat.cpp
d:\ include\common\cdrtintegfeat.h(39) : error C2143: syntax error :
missing ';' before '*'
d:\ include\common\cdrtintegfeat.h(39) : error C2501: 'CDrtEachDefFeat'
: missing storage-class or type specifiers
d:\ include\common\cdrtintegfeat.h(39) : error C2501:
'm_pdrtEachDefFeat' : missing storage-class or type specifiers

In code the files are included in the order, CDrtEachDefFeat has #
include "CDrtTeachData" and so on...
CDrtEachDefFeat
|
|__ __CDrtTeachData
|
|__ __CDrtIntegFeat
|
|__ __CDrtEachDefFeat

Code is:

==========Start of CDrtEachDefFeat.h================

#if !defined(COMMON_CDRTEACHDEFFEAT_H)
#define COMMON_CDRTEACHDEFFEAT_H

#include "CDrtTeachData.h"
/* member function of CdrtEachDefFeat class uses, class CdrtTeachData
as input parameter. */

namespace Common
{

class DLL_EXPORT CDrtEachDefFeat
{
}

}
#endif

==========End of CDrtEachDefFeat.h================

==========Start of CDrtIntegFeat.h================

#if !defined(COMMON_CDRTINTEGFEAT_H)
#define COMMON_CDRTINTEGFEAT_H

#include "CDrtEachDefFeat.h"
namespace Common
{

class DLL_EXPORT CDrtIntegFeat
{
CDrtEachDefFeat *m_pdrtEachDefFeat;
}
}

}
#endif

==========End of CDrtIntegFeat.h================

==========Start of CDrtTeachData.h================

#if !defined(COMMON_CDRTTEACHDATA_H)
#define COMMON_CDRTTEACHDATA_H

#include "CDrtIntegFeat.h"
/* member function of CDrtTeachData class, uses class CDrtIntegFeat as
input parameter. */
namespace Common
{
class DLL_EXPORT CDrtTeachData
{
}

}

#endif

==========End of CDrtTeachData.h================

Jul 22 '05 #1
2 10899
ka**************@patni.com wrote:
Hi all,

how to remove the following complle error.
When I compiling the code I get the following errors:

Look through your code again, find it yourself, get a cookie. It's
really so basic, if you don't learn to find that one yourself you're not
gonna make it ;)
bye, 'monster
Jul 22 '05 #2
ka**************@patni.com wrote:
Hi all,

how to remove the following complle error.
When I compiling the code I get the following errors:
You need a ; after a definition of a class. For example
<snip> namespace Common
{

class DLL_EXPORT CDrtEachDefFeat
{
}; <- here!

}
#endif


However, I have no idea what DLL_EXPORT means, it's some freakish
windows thing, and might be adding to your problems...

Chris
Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
3
by: Andrew Luke | last post by:
Hi all you C++ guru's! I'm 'very, very' new to C++ and I'm having a little trouble configuring my VS environment I think - when I try and compile some sample code I'm getting the following...
1
by: Minh | last post by:
I've just installed VS.NET 2003 on my Athlon XP 1800+. However I couldn't get any project with STL includes to compile even if I create a new empty project (and added #include <string>). It gave me...
2
by: Qiao Yun | last post by:
I used vc++.net (visual studio .net ) to open a project which can work well in vc++6.0. I succeeded in compiling the project in vc++.net in release mode . But when I tried to compile the project...
0
by: Shashikiran Prabhakar via .NET 247 | last post by:
(Type your message here) Hi, I am not very conversent in VC++, but the requirement for me is to run a rendering code. However i am encountering the following errors. c:\Program...
18
by: George2 | last post by:
Hello everyone, What is wrong with the code, I just want to allocate an array of 100 void* pointers. :-) int main() { void** p;
3
by: sphenxes | last post by:
#include <cmath> #include <ctime> #include <cstdlib> #include <iostream> using namespace std; struct Pharmacology{ string genericName; string tradeName; string classification;
8
by: =?GB2312?B?yum09MXt?= | last post by:
today I forgot to include some header,then I found the error message by the compiler is quite strange. so I want to know exactly the inner details of the compiler impletation,if possible. and I...
15
by: madhu.ab | last post by:
Hi All, I am getting the following errors when i am including header file winuser.h I dont know whats happening. How will an error occur in winuser.h?? Please help. \microsoft visual...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.