Home » Developing U++ » U++ Developers corner » 1538 compilation fails
1538 compilation fails [message #22922] |
Fri, 28 August 2009 22:06  |
g6b0r
Messages: 11 Registered: August 2009
|
Promising Member |
|
|
hilo,
I tried to build from source (upp-x11-src-1538.tar.gz) on my deb Etch, but the compilation has failed:
c++ -o ide.out -Wl,-s -L"/usr/X11R6/lib" -L"/usr/lib" -Wl,-O,2 \
...
_out/RichText/GCCMK-Gcc-Gui-Linux-Posix-Shared/RichText.a(Te xtPaint.o): In function `Upp::RichText::GetInvalid(Upp::PageY&, Upp::PageY&, Upp::Rect_<int> const&, int, int, int, int) const':
TextPaint.cpp:(.text._ZNK3Upp8RichText10GetInvalidERNS_5Page YES2_RKNS_5Rect_IiEEiiii+0x354): undefined reference to `Upp::RichTxt::Sync(int, Upp::RichContext const&) const'
collect2: ld returned 1 exit status
make[1]: *** [ide.out] Error 1
Does anyone know how to get over with this?
thx!
gabor
|
|
|
Re: 1538 compilation fails [message #22923 is a reply to message #22922] |
Sat, 29 August 2009 00:05   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
g6b0r wrote on Fri, 28 August 2009 16:06 | hilo,
I tried to build from source (upp-x11-src-1538.tar.gz) on my deb Etch, but the compilation has failed:
c++ -o ide.out -Wl,-s -L"/usr/X11R6/lib" -L"/usr/lib" -Wl,-O,2 \
...
_out/RichText/GCCMK-Gcc-Gui-Linux-Posix-Shared/RichText.a(Te xtPaint.o): In function `Upp::RichText::GetInvalid(Upp::PageY&, Upp::PageY&, Upp::Rect_<int> const&, int, int, int, int) const':
TextPaint.cpp:(.text._ZNK3Upp8RichText10GetInvalidERNS_5Page YES2_RKNS_5Rect_IiEEiiii+0x354): undefined reference to `Upp::RichTxt::Sync(int, Upp::RichContext const&) const'
collect2: ld returned 1 exit status
make[1]: *** [ide.out] Error 1
Does anyone know how to get over with this?
thx!
gabor
|
That is weird, in Ubuntu it compiles just fine... (1539).
Have you done Rebuild all?
Mirek
|
|
|
|
|
|
Re: 1538 compilation fails [message #22932 is a reply to message #22931] |
Sat, 29 August 2009 22:05   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
g6b0r wrote on Sat, 29 August 2009 15:44 | Hilo,
I have removed the inline keyword in RichTxt/TxtPaint.cpp:
inline void RichTxt::Sync(int parti, const RichContext& rc) const {
and it has been compiled and built successfully.
with 1540, on debian etch, gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Do you have guess why the inline keyword was a problem on my box?
Gabor
|
I think we can live without "inline" there, anyway, to my best knowledge of C++, it looks like fault of gcc.
Per standard, all inline functions should be also created in a form that is accepted by linker.
Never mind going to remove that inline.. 
Mirek
|
|
|
|
Goto Forum:
Current Time: Mon Apr 28 21:49:56 CEST 2025
Total time taken to generate the page: 0.01132 seconds
|