Skip to main content
gamedev.net
🔒 Locked

need help explaining link errors

Started by Gorgoth 0 replies 400+ views
Original Post
Gorgoth
Gorgoth
I need help. I have created a class called DSApp_3D. The problem comes in when I declare a object of the class at the end of the class. When I do that and try to compile it I get these link errors: Shardreth.obj : error LNK2005: "class DSApp_3D thedsapp" (?thedsapp@@3VDSApp_3D@@A) already defined in DSApp 3D.obj Debug/Shardreth.exe : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. Its the only one I define of it and were a take out the include in the main srouce it goes away but makes my file useless. Any ideas on what causeing it?
When all else fails, nuke them.
Shannon Barber
Shannon Barber
You probably included the same header file twice.

Put
    
#pragma once

at the top of the file

Magmai Kai Holmlor

"Oh, like you've never written buggy code" - Lee

"What I see is a system that _could do anything - but currently does nothing !" - Anonymous CEO

Edited by - Magmai Kai Holmlor on December 23, 2001 12:59:32 AM
The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.