Error 1 Error C2470
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up class exporting error (error C2470: looks like a function definition) up vote 7 down vote favorite I can't export a class: #ifndef SDBIDI #define SDBIDI #ifndef SDBIDI_FLAG #define SDBIDI_ORIENT __declspec(dllimport) #else #define SDBIDI_ORIENT __declspec(dllexport) #endif #include "TCInfoSuVars.h" //class is here! SDBIDI_ORIENT int myFoo(FILE *file); // exporting function #endif class definition in TCInfoSuVars.h #pragma once #include
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up What does the C++ compiler error “looks like a function definition, but there is no parameter list;” mean? up vote 8 down vote favorite #include http://stackoverflow.com/questions/5328952/class-exporting-error-error-c2470-looks-like-a-function-definition
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of http://stackoverflow.com/questions/19217757/xxxx-looks-like-a-function-definition-but-there-is-no-parameter-list-skipp this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question https://answers.yahoo.com/question/index?qid=20140108151243AALpkuX x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up error 1 `xxxx' : looks like a function definition, but there is no parameter list; skipping apparent body up vote 3 down vote favorite I have the code below which is a bowling game. This code was working good in Eclipse but I Then moved this to microsoft visual studio express 2012 for windows desktop, it gives the following error. Error 1 error C2470: 'cone1' : error 1 error looks like a function definition, but there is no parameter list; skipping apparent body c:\users\rocckky\documents\visual studio 2012\projects\consoleapplication1\consoleapplication1\consoleapplication1.cpp 26 1 ConsoleApplication1 Note: - I am not pasting all errors, it gives the same error where type cones are defined. #include "stdafx.h" #include "cstdlib" #include "GL/glut.h" #include "GL/glu.h" #include "stdlib.h" #include "vector" using namespace std; int refreshMillis = 30; // Refresh period in milliseconds int windowWidth = 640; // Windowed mode's width int windowHeight = 480; // Windowed mode's height int windowPosX = 50; // Windowed mode's top-left corner x int windowPosY = 50; // Windowed mode's top-left corner y bool fullScreenMode = false; // Full-screen or windowed mode? GLfloat ballSpeed = 0.150f; // Ball's speed in y directions GLfloat speedLine; GLfloat ballMaxSpeed = 0.550f, ballMinSpeed = 0.150f; bool moveBallUp = false, moveBallDown = false, isCollision = false, resetCall = false, moveRight = false, moveLeft = false, ballInRight = false, ballInMiddle = true, ballInLeft = false; GLfloat vp_x = 2.0f, vp_y = 10.0f, vp_z = 25.0f, vt_x = 2.0f, vt_y = 20.0f, vt_z = 0.0f, vu_x = 0.0f, vu_y = 0.0f, vu_z = 1.0f; //eyex, eyey, eyez, centerx, centery, center
Help Suggestions Send Feedback Answers Home All Categories Arts & Humanities Beauty & Style Business & Finance Cars & Transportation Computers & Internet Consumer Electronics Dining Out Education & Reference Entertainment & Music Environment Family & Relationships Food & Drink Games & Recreation Health Home & Garden Local Businesses News & Events Pets Politics & Government Pregnancy & Parenting Science & Mathematics Social Science Society & Culture Sports Travel Yahoo Products International Argentina Australia Brazil Canada France Germany India Indonesia Italy Malaysia Mexico New Zealand Philippines Quebec Singapore Taiwan Hong Kong Spain Thailand UK & Ireland Vietnam Espanol About About Answers Community Guidelines Leaderboard Knowledge Partners Points & Levels Blog Safety Tips Computers & Internet Programming & Design Next C++ error C2470 please help? This is what I have, can someone please help me with this error? // CollegeCourse.cpp.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include