473,566 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

error C4430: missing type specifier - int assumed. Note: C++ does not support defaul

Hi, This is my first OOP in C++ and having lots of probs. Below is an abstract class for an abstract factory problem. I get the compiler error as shown in the heading.

Thanks for any tips

Expand|Select|Wrap|Line Numbers
  1. #ifndef MODEMFACTORY_H
  2. #define MODEMFACTORY_H
  3. #include <string>
  4. #include "Modem.h"
  5.  
  6. class ModemFactory
  7. {
  8. public:
  9.      virtual Modem* make(const string &modem_type) = 0;
  10. };
  11.  
  12. #endif
  13.  
Oct 26 '10 #1
1 3233
weaknessforcats
9,208 Recognized Expert Moderator Expert
You have a function that does not have a return type declared.

That error is not in the code you posted.

Look at the line number on the C4430, then look there in your code. That's where the compiler got in trouble. The actual error will be there or before that.
Oct 26 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
31193
by: John | last post by:
Hi, I am working on a legacy code. Following is a line of the code which complies with Visual C++.NET 2003 but not with Visual C++ 2005: for ( int i = 0; i < (const)(X.size()); i++ ) {}// X is an object such as a standard Vector Compile error with Visual C++ 2005: error C4430: missing type specifier - int assumed. Note: C++ does not...
8
8977
by: eminemence | last post by:
Hi, I have been trying to get STLPort work for Symbian. I am using CodeWarrior compiler and it spews this errors namely ************************************************************************* Error : type specifier omitted for parameter string.h line 30 ************************************************************************ The...
0
1967
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project by serveraddresss?wsdl, it gives me following error: Custom tool error: Unable to import WebService/Schema. Unable to import binding 'MyRemoteObjectBinding' from namespace...
2
5348
by: darko | last post by:
ok, i'm just starting out, with c++ and i downloaded some wideos, i'm working on VS.NET 2005, and hthe first script is helloworld #include <iostream> main() { std::cout << "Hello World"; } and here's what i'm getting, the project is a win32 consol project Error 1 error C4430: missing type specifier - int assumed. Note: C++ does not...
1
11567
by: Bit Byte | last post by:
The following function pointer declarations used to compile without any problems in VS7.1, now when I try to compile in VS8, I get a C4430 error. Anyone knows why, and how to fix it (without using pragma disable)? //My header file ... /* Prototypes for subscription callbacks */ typedef void (__stdcall *IntCallback)(const char*, const...
0
1647
by: Ole Nielsby | last post by:
The C++ syntax goes like: type-id: type-specifier-seq abstract-declarator(opt) type-specifier-seq: type-specifier type-specifier-seq(opt) which means, a type-id has 1 or more type-specifiers in it. This introduces ambiguities. Assuming no namespace, and declarations
2
5749
by: im2cre8iv | last post by:
Here is my code where I am receiving the error: #include <fstream> #include "BinaryTree.h" using namespace std; Node* BinaryTree::MakeTree(ifstream& infile) { char name; infile>>name;
1
1761
by: pra1983 | last post by:
can any one can help i am getting an error saying "missing type specifier - int assumed in line 332" but my line of that part are.... 332: getchar(); 333: getchar(); 334: for( i=0 ; i<10000 ; i++ ) 335: { 336 delete netpoint; 337: }
12
39108
by: slizorn | last post by:
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int err how do i fix that error? for example given to this section of code.. Matrix::addMatrix(Matrix m1, Matrix m3) { for(int a = 0; a < row; a++) { for(int b = 0; b < col; b++)
1
2254
by: ornit | last post by:
What caused this error: c4430?
0
7666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
1
7644
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7951
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2083
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.