C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 8th, 2013, 02:28 AM
JAAAFR JAAAFR is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2013
Posts: 1 JAAAFR User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 19 sec
Reputation Power: 0
Syntax errors - Error C4430: missing type specifier - int assumed. Note: C++ does not support defaul

Hi all,

New to C++ ... Using VC++ 2010 EXPRESS EDITION

This is a simple dll project "square" from which I want to export the square function and use it in excel

Funct.cpp
Code:
double _stdcall square(double & x)
{
 return x * x;
}


deffile.def
Code:
LIBRARY ;square
	; EXPORTS
	; square 


After I click on Build solution I get the following output:
Code:
 ------ Build started: Project: square, Configuration: Debug Win32 ------
  deffile1.def
c:\visual studio 2010\projects\square\square\deffile1.def(1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\visual studio 2010\projects\square\square\deffile1.def(2): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\visual studio 2010\projects\square\square\deffile1.def(3): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\visual studio 2010\projects\square\square\deffile1.def(4): fatal error C1004: unexpected end-of-file found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


What am I doing wrong ?

Regards.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > Syntax errors - Error C4430: missing type specifier - int assumed. Note: C++ does not support defaul


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap