PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

does "edgemain.h" interface contain IMPLEMENTATION

akabeer1983 · 07 Feb 2009, 05:22 UTC
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
akabeer1983 · 07 Feb 2009, 10:11 UTC
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.