#### Archived

This topic is now archived and is closed to further replies.

# Need help with ddutil.cpp

This topic is 6270 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

##### Share on other sites
that thing never worked for me I dunno what to say.

Eric Wright o0Programmer0o
AcidRain Productions
http://www.acidrainproductions.com

##### Share on other sites
You have defined the ddutil.h file twice.

To fix this define ''pragma once'' in the ddutil.h file, and your own header files to avoid future problems.

  #pragma once#ifndef __ddutil_h#define __ddutil_h

  #endif // __ddutil_h

##### Share on other sites
nope,thanks anyways,but i tried it and it didnt work.i put it at the top of the ddutil.h
and the other endif at the bottom,it didnt work.i even tried it at the top of my main.cpp and the ddutil.cpp.any thoughts.Or could you send me some code with it working.thanks

.............................

##### Share on other sites

Try removing #include "ddutil.h" from your main.h file and putting it in your main.cpp file instead (or vise-versa). Or check your other cpp and h files and remove it from them.

Otherwise if it still doesnt work, send me the project if its vc command line based (Im not running DevStudio where I am) and Ill see what I can do.

NSZeroOne@Hotmail.com

##### Share on other sites
I have had that error happen to me before. I fixed it one of two ways:

1. I did a clean rebuild. By default Visual Studio links incrementally. This means it doesn''t completely re-compile/re-link all of the object files when building. The error coming up are because you made a change in Main.cpp and ddutil.cpp stayed the same, therefore Visual Studio is trying to re-link only main.obj and not ddutil.obj. It''s kinda dumb, but that is easiest way to clear up the problem

2. Check your header definitions. Make sure you are only including DDUTIL.H and not both DDUTIL.H and DDUTIL.CPP. I have seen this mistake before.

Other than that, maybe if we could take a look at your declarations and see if we can track down the bug.

-----------------------------
kevin@mayday-anime.com
http://dainteractive.mayday-anime.com

1. 1
2. 2
Rutin
19
3. 3
4. 4
5. 5
frob
13

• 9
• 15
• 10
• 9
• 17
• ### Forum Statistics

• Total Topics
632602
• Total Posts
3007364

×