Page 1 of 1

does "edgemain.h" interface contain IMPLEMENTATION

PostPosted: Feb 7, 2009 @ 6:22am
by akabeer1983
if i try to include the header "edgemain.h" in two different and independent (no inheritance relation) clases (defined in separate files), it displays error.

i had 2 classes:

____________________________________
#include "edgemain.h"
class ModuleManager
{
//using ClassEDsiplay, etc
}
____________________________________
#include "edgemain.h"
class TiledImage
{
//using E2DSurface . . .etc
}
____________________________________
in this case it displays the error:
dupllicate symbol: ERender_Get_GetBltFast8 . . .

. . . g++-4.0 failed with exit code 1

PostPosted: Feb 7, 2009 @ 11:11am
by akabeer1983
Hi, i found a similar problem posted in " linker errors with edgemain.h" in this forum.

following the solution posted there, i included "edgemain.h" in the file conatining "EdgeMain()" function, and elsewhere i just included "edge.h"

Thanks! PROBLEM SOLVED!

i have been trying several possible ways (guarded includes, pragma once, redundant include guards, EDGE_INCLUDED macro, all-in-one header file, etc) for 1 day.