Suddenly, multiple definitions

Discuss programming topics for the various GPL'd game engine sources.
Post Reply
Ghost_Fang
Posts: 336
Joined: Thu Nov 12, 2009 4:37 am

Suddenly, multiple definitions

Post 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
ScatterBox
Posts: 50
Joined: Sun Oct 13, 2013 7:53 pm

Re: Suddenly, multiple definitions

Post 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.. :)
Ghost_Fang
Posts: 336
Joined: Thu Nov 12, 2009 4:37 am

Re: Suddenly, multiple definitions

Post by Ghost_Fang »

I figured it out. I just needed to do a complete clean build
ScatterBox
Posts: 50
Joined: Sun Oct 13, 2013 7:53 pm

Re: Suddenly, multiple definitions

Post by ScatterBox »

Ghost_Fang wrote:I figured it out. I just needed to do a complete clean build
Heh, whatever works! :)
Post Reply