Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 09 Aug 2005
Offline Last Active Oct 20 2016 12:02 PM

#5254389 Multiple definition error

Posted by on 28 September 2015 - 09:38 AM

Your definition of Object::ObjectID should be within a source file. Currently if you include your header file in multiple .cpp files the compiler will generate multiple instances of the ObjectID as you have it currently defined "int Object::ObjectID = 0"

On a side note I'm not entirely certain how the compiler handles two declarations of a static with the same name in a base class and the derived class as well.

#5026811 Have Solution/Project for both VS2010/2012

Posted by on 29 January 2013 - 11:06 AM

If you require people to use different toolsets for working on your code base I would suggest using a utility like CMAKE or Premake to generate the solution/projects. This way you distribute the CMAKE or Premake files and people can have those build the VS/make/XCode projects that are required for what you are working on.


I modified the premake source a little while back in order to make it work with VS2012. I can probably post it online later today if you consider that as an option.

#4909207 Anyone want to help me? Basic DX environ in C++

Posted by on 03 February 2012 - 10:25 AM

// insert code here
int main(int argc, char* argv)
	 //Initialize Systems
	 //Load data
	 //Update world

	 return 0;

I'll start :-P

#4819229 Win32 Window Issue (C++)

Posted by on 03 June 2011 - 03:30 PM

OK, so I figured I would give you guys an update. Since I was writing this post away from my dev machine I was 100% certain I had tried it as the code I posted. Apparently I was wrong, sorry about that. I should verify what I am doing before I claim I am doing it in the future.

I had left in code to initialize raw input. Apparently setting up a raw input device with RIDEV_NOLEGACY caused the issue I was having. As soon as I removed that flag when creating my raw input devices everything cleared up.