Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple definition errors (fix included) #1

Closed
GoogleCodeExporter opened this issue Mar 14, 2015 · 6 comments
Closed

Multiple definition errors (fix included) #1

GoogleCodeExporter opened this issue Mar 14, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

When a header file that includes MLlib.h is included in multiple files, the
linker throws a few multiple definition errors at you. This is fixed by
making a couple of variables extern in the header files:

in globals.h:
  bool _asnd_enabled;
  bool bPowerOff;
  bool bReset;

in MLlib_video.h:
  GXRModeObj *screenMode;
  int _screenWidth, _screenHeight;

in MLlib_input.h:
  WPads Wiimote[WPAD_MAX_WIIMOTES];
  Nunchuks Nunchuk[WPAD_MAX_WIIMOTES];
  CPads CPad[WPAD_MAX_WIIMOTES];
  GH Guitar[WPAD_MAX_WIIMOTES];
  GC_Pads Pad[4];

Original issue reported on code.google.com by nardi110...@gtempaccount.com on 25 Jun 2009 at 7:14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant