Questions tagged [redefinition]

276 questions
0
votes
1 answer

OpenGL redefinition error while compiling glm conflict with Windows SDK files

When I add a module(using OpenGL and glm) (which tested and compiled OK as a single program) into a big program. errors happened when compiling the glm in the project: 1>d:\program files (x86)\microsoft visual studio…
toolchainX
  • 1,998
  • 3
  • 27
  • 43
0
votes
1 answer

How to dynamically add methods to a class in [incr-tcl]

In Incr Tcl, I receive a gain in programming productivity via changing and then re-eval'ing a class's methods into a running Tcl interpreter, without restarting the application. To do that, I have to define the methods outside of the class…
bgoodr
  • 2,744
  • 1
  • 30
  • 51
0
votes
2 answers

redefining row numbers (index)

Possible Duplicate: Change the index number of a dataframe I did various operations with a dataframe and excluded a number of rows. As you see in my example the dataframe now starts with 366. I would like to redefine this row number back to 1 and…
Fabian Stolz
  • 1,935
  • 7
  • 27
  • 30
0
votes
1 answer

Merge two Qt/C++ projects: redefinition errors

I have a problem with merging two projects compiled separately. I created some classes (Qt and C++) to manage two mechanical stages (first project) and one class/interface for a laser scanner (second project). When I import the class/interface in…
Marco Carletti
  • 318
  • 2
  • 5
  • 16
-1
votes
1 answer

Is redefinition of a pointer prohibited in c++ despite the pointer not being const?

In the tutorial that I am following, it is mentioned that pointers can be redefined to contain the addresses of a different variable, as long as the pointer is not constant. But the following block of code gives an error regarding redefinition of a…
-1
votes
2 answers

Error C2011, Tried everything already asked on here

i am new to Cpp and am having this error: Error C2011 'point2d': 'struct' type redefinition it is the first time i use modules, and i am having an error with the headers. Here is my code: squarecell.cc: #include #include…
-1
votes
1 answer

One-Definition Rule Followed, but C++ throws Redefinition Error

Very strange redefinition error in C++, especially as every other file including main is error-free. I have my headers (various animals) and an implementation file "animals.cpp". My headers follow the format: class Mammal : public Animal{ …
faangorn
  • 57
  • 7
-1
votes
3 answers

Defining trouble. C++

IT'S SIMPLIFIED CODE! I HAVE C++ FILES(WHERE IS IMPLEMENTATION) AND HEADERS FILES(WHERE IS CLASS DEFINITIONS)! I have a file: Foo.cpp that incliudes main.h. And I have file Bar.cpp that uses funcs Foo.cpp and also includes main.h. It uses struct to…
HiTECNOLOGYs
  • 327
  • 5
  • 21
-1
votes
2 answers

C++: redefinition of a 'classname'

I'm writing a code describing a complex variable and a real variable. i've included the header file which seems to produce a conflict between the .hpp file and the .cpp file. They are similiar and I can't track down from where the redefinition…
user6394019
  • 121
  • 5
-1
votes
1 answer

redefinition in h files

i solved couple of my redefinition problems but still have one: Error 2 error LNK2005: "class ConsoleCommandHandler commandHandler" (?commandHandler@@3VConsoleCommandHandler@@A) already defined in IRC.obj …
titans
  • 9
  • 6
-1
votes
1 answer

How do I redefine SBT's test task?

In my current environment, sbt test doesn't work. I would like to make sbt print "This doesn't work, do the following instead: [...]" until we get sbt test sorted out. How do I do this?
Jonas Kölker
  • 7,680
  • 3
  • 44
  • 51
-1
votes
1 answer

Redefinition different basic types => typedef

After to have been aware of the persons who had the same problem than mine, I still get this error : error C2371: 'ST_ELLIPSE' : redefinition; different basic types see declaration of 'ST_ELLIPSE' C2371: 'ST_VECTEURS' : redefinition; different…
MichMich229
  • 11
  • 2
  • 4
-1
votes
3 answers

operator +' : redefinition; different type modifiers

I have the code: // class declaration class Vector3D; // class declaration and definition class Point3D { // ... // function declaration (only needs class declarations) Point3D operator+(const Vector3D &); }; // class…
PolGraphic
  • 3,233
  • 11
  • 51
  • 108
-2
votes
1 answer

Why is the redefinition of functions in c++ failed in vscode?

I want to use the virtual function in my program. However, VSCode keeps telling me errors in the redefinition of the function. This is my error message: exp8_2.cpp:29:7: error: redefinition of 'float Mammal::getweight() const' float…
-2
votes
4 answers

Redefinition Error C++

I am having trouble with the portion where I need to print the day. I tried making a second variable but it is not working. Basically I take a user input for their birthday. Then I'm trying to call this function that determines the day of birth (it…
NICE8xx
  • 21
  • 1
  • 3
1 2 3
18
19