Questions tagged [redefinition]

276 questions
-2
votes
1 answer

Why do I keep getting a redefinition of formal parameter error

#include using namespace std; void mf_option(int player1, int player2); void mf_option2(int player1, int player2); void mf_option3(int player1, int player2); int main() { int player1, player2; cout << "\n\n\nWlcome to \"Rock…
joe
  • 39
  • 1
  • 1
  • 4
-2
votes
1 answer

How does the standard library manage to have non-inline functions in headers and how can I do that?

I understand that in the standard library for C++, they have lots of functions that are not inline. However, by reading multiple other SO questions/answers, I have discovered that having non-inline functions in headers that are included across…
markasoftware
  • 12,292
  • 8
  • 41
  • 69
-2
votes
1 answer

c Static float error: ‘????’ redeclared as different kind of symbol

unable to compile a c program, problem with symbol redefinition. Have tried various variable data type definitions, cannot understand what is going on here regarding float and static float. Have given it a good shot, any help appreciated. Chris $…
Glochief
  • 1
  • 1
-3
votes
2 answers

int : redefinition (C++)

#include #include #include using namespace std; int x, y; int main() { cout << "Please give me a number:"; int x = (cin, x); cout << "Please give me another number:"; int y = (cin, y); cout <<…
-3
votes
1 answer

C++, Class redefinition

Error 3 error C2011 : 'Queue' : 'class' type redefinition. Error 2 error C2011 : 'Edge' : 'class' type redefinition. Why this error? I compiled the program and it crashed... #include "Edge.h" class Queue { private: Edge…
pcpiotrek
  • 3
  • 2
-5
votes
1 answer

redefinition; different basic types

I've been doing a little coding with structures and i'm getting an consistent error that no one seems to can solve. I'm getting this error.Line 1 mostly. 1>c:\users\kevin\documents\visual studio 2010\projects\is the complier trying to piss me off\is…
kevin hay
  • 1
  • 1
  • 1
1 2 3
18
19