Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Compiler error

21 views
Skip to first unread message

David Duke

unread,
Mar 19, 2022, 7:29:07 AM3/19/22
to ogdf

I'm getting a compile time error from a file that includes multiple OGDF headers:

error: redefinition of 'LayoutModule'

class OGDF_EXPORT LayoutModule {

                  ^

/usr/local/include/ogdf/basic/LayoutModule.h:44:19: note: previous definition is here

class OGDF_EXPORT LayoutModule {


My first though was that the head was being included multiple times. However it has
a #ifdef guard on it to prevent this.

I'm using  OSX 11.6.4 with OGDFv2022.02
I get the same issue with both the Apple  clang and g++

Ay thoughts on possible cause?


thanks
David Duke




David Duke

unread,
Mar 24, 2022, 3:15:07 PM3/24/22
to ogdf
Issue closed. I fixed the problem. Multiple copied of the library in my path. once
prund to a single copy, it compiled fine. Not clear why
the multiple copies should triggered the error as all headers
should have been  guarded to prevent repeated processing and redefintion..

Reply all
Reply to author
Forward
0 new messages