Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

undefined reference to eSettings::SetPageSettings #62

Open
toudi opened this Issue · 3 comments

2 participants

@toudi

i have changed the source code a lot in order to compile e at all. Now my changed source code relies only on system libs, not the ones e downloads and provides. i discovered that there were some problems in joining wxwebconnect with wx-webkit but i have fixed it. now, the linking final stage:

../ecore/libecore64.so(cxInternal.o): In function cxInternal::MoveOldSettings(eSettings&)':
cxInternal.cpp:(.text+0x4adf): undefined reference to
eSettings::SetPageSettings(unsigned long, wxString const&, doc_id, int, int, wxString const&, std::vector > const&, std::vector > const&, eSettings::SubPage)'
/usr/bin/ld: BFD version 2.19.51.0.14-34.fc12 20090722 internal error, aborting at elflink.c line 8494 in elf_link_check_versioned_symbol

/usr/bin/ld: Please report this bug.

collect2: ld returned 1 exit status
make: *** [e] Błąd 1

i'm rather stuck, i cannot find source code for eSettings class and / or header file for ecore.

please help.. :)

@adamv

Settings:
http://github.com/etexteditor/e/blob/master/src/eSettings.h
http://github.com/etexteditor/e/blob/master/src/eSettings.cpp

There is no single ecore header, there are just bits of source that are binary-only.
It's quite possible that new binary-only x64 libs were not posted to correspond w/ the new source code.

@toudi

:( that's very sad.. however i hope that i will be able to compile e at some time.. until then i'll stay tuned with hopes for some updates :) thanks.

@toudi

hooray!! i got it sorted out!. first of all, You need to add

enum SubPage {SP_MAIN=0, SP_LEFT, SP_RIGHT};

and

void SetPageSettings(unsigned long page_id, const wxString& path, doc_id di, int pos, int topline, const wxString& syntax, const vector& folds, const vector& bookmarks, eSettings::SubPage sp=SP_MAIN);

into eSettings.h file.

You also need to provide an implementation of this function (i don't know what it should do so i just did an empty implementation).

then whenever there is a reference to SP_LEFT or SP_RIGHT You need to prefix it with eSettings:: (i found such case in CompareDlg.cpp)

one last thing i wasn't able to figure out was undefined reference to _pcre_ord2utf8(int, uschar*) but i commented the whole line containing this function.

now e compiles and runs :D

am i the only one experiencing compilation problems? some of the issues i reported don't seem to be Fedora or g++ 4.4 specific.. :)

best regards, toudi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.