On 2020-08-01 12:43, Stephan Witt wrote:
Am 01.08.2020 um 09:48 schrieb Daniel <xraco...@gmx.de>:

I am trying to fix Ticket #9376. My attempt so far is attached. However, I have 
hit a little road block in that the clang compiler does not give me useful 
information (for me at least):

CXXLD    lyx
Undefined symbols for architecture x86_64:
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > 
lyx::convert<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, 
lyx::Length>(lyx::Length)", referenced from:
      lyx::LyXRC::write(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, 
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) 
const in liblyxcore.a(LyXRC.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [lyx] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
ERROR: Cannot build and install lyx for x86_64.


Maybe someone knows what I might be doing wrong?

IMO, it’s the change from int for full_screen_width to Length for screen_width.
In LyXRC::write() the operator << is not implemented for Length, probably.

Sounds plausible. So, short of implementing << for length, I should
probably store the length in some other format, like string. Length
seems to have a function for that: asString().

Daniel
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to