Top "Redefinition" questions

C++ Redefinition Header Files (winsock2.h)

How do I prevent from including header files twice? The problem is I'm including the in MyClass.h and then …

c++ header redefinition
Why am I getting this redefinition of class error?

Apologies for the code dump: gameObject.cpp: #include "gameObject.h" class gameObject { private: int x; int y; public: gameObject() { x = 0; …

c++ class redefinition
Redefining or changing macro value

I am currently working on an already developed project written in MFC C++ and am facing a problem with an …

c++ mfc macros redefinition
How to redefine a Ruby constant without warning?

I'm running some Ruby code which evals a Ruby file every time its date changes. In the file, I have …

ruby constants redefine redefinition
Override a member function with different return type

Consider the example below: #include <iostream> using namespace std; class base { public: virtual int func() { cout << "…

c++ virtual-functions overriding redefinition
error C2375: redefinition; different linkage

Error place in api: #define DLLEXPORT extern "C" __declspec(dllexport) DLLEXPORT int CAnyseeUSBTVControllerDlg::InitCaptureDevice() { In my .h library class and …

c++ redefinition
error C2371: 'functionname' redefinition: different basic types

i have a Problem. I use Visual Studio 2013 and get the following Error: Error C2371: 'getgrundflaeche' redefinition: different basic types. …

c function-prototypes redefinition
C++ Error message redefinition of functions

I am using two stacks to implement a queue class. My header file looks like: #ifndef _MyQueue_h #define _MyQueue_…

c++ class stack queue redefinition
Single class has a Class Redefinition Error

I'm new to C++, and I'm having a problem with my class definitions in a header file. The code for …

c++ class redefinition
Can't include <gl/gl.h>

I'm using Visual Studio 2010. I'm trying to write simple Camera class in OpenGL. I need to include gl/gl.h …

opengl include redefinition