Page 1 of 1

Suddenly, multiple definitions

Posted: Sun Dec 08, 2013 7:51 pm
by Ghost_Fang
Ive compiled this build before just fine. But i made some changes in video_hardware_surface and i got this error, i undid all my changes, and i still get it. I'm at a loss. Any ideas?

Image

Re: Suddenly, multiple definitions

Posted: Sun Dec 08, 2013 9:11 pm
by ScatterBox
I'm no expert, but I'm going to try and help out here.. so, I think you could just go to where it says it's first defined and delete it there.. then if you have errors, you could need to include the files where they are newly defined in the ones that were first defined.

So:
1. #include the file where you newly defined it in..

example:

Delete "renderamt" definition in video_hardware_surface. Then at the top of video_hardware_surface use "#include video_hardware_warp" because video_hardware_surface is one where you are having problems.

2. Do that for all of those errors, and compile... This just might work.

I'm newish to QuakeC and Quake engine coding. So somebody correct me if I'm wrong please.. :)

Re: Suddenly, multiple definitions

Posted: Sun Dec 08, 2013 10:02 pm
by Ghost_Fang
I figured it out. I just needed to do a complete clean build

Re: Suddenly, multiple definitions

Posted: Mon Dec 09, 2013 1:23 am
by ScatterBox
Ghost_Fang wrote:I figured it out. I just needed to do a complete clean build
Heh, whatever works! :)