|
-
Feb 20th, 2001, 04:27 PM
#1
Thread Starter
Frenzied Member
My program compiles ok but then it starts to link and it goes downhill. Here is my problem I have 3 cpp and 3 .h files that all have to be linked together, but one .h file appears to be messing me up.
Here is my main.h
Code:
#ifndef MAIN_H
#define MAIN_H
#include <windows.h>
#include <io.h>
#include <stdio.h>
#include <commctrl.h>
#include <initguid.h>
#include "graphicscontroller.h"
#include "gwmail.h"
function delceration
etc.
#endif
graphicscontroller.h
Code:
#ifndef GRAPHICSCONTROLLER.H
#define GRAPHICSCONTROLLER.H
#include "main.h"
functions
etc.
#endif
gwmail.h
Code:
#ifdef GWMAIL.H
#define
//Here is the troubled .h, it is a custome object for Novell GoupWise created by Novell
#include <gwoapi.h>
#include "main.h"
Functions
etc.
#endif
When I go to compile it I get
Main.Obj : Error Lnk2005: _CLSID_SHAREDNotification Already Defined In GraphicsControl.obj
and on and on for all the objects in gwoapi.h then it will go through the entire set of Groupwise Objects for the gwmail.obj. So I get a total of 681 error.
This is making me insane. If I have everything in one cpp and .h it works fine, but my functions are getting numerous and it would be cleaner if I could have many .cpp and .h
Any ideas?
Thanks
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com

-
Feb 20th, 2001, 04:48 PM
#2
Monday Morning Lunatic
Code:
#ifdef GWMAIL.H
#define
//Here is the troubled .h, it is a custome object for Novell GoupWise created by Novell
#include <gwoapi.h>
#include "main.h"
Functions
etc.
#endif
Try changing the first lines to:
Code:
#ifndef __GWMAIL_H__
#define __GWMAIL_H__
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Feb 20th, 2001, 04:59 PM
#3
Thread Starter
Frenzied Member
That didnt work
Any other ideas?
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|