Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » 1538 compilation fails
1538 compilation fails [message #22922] Fri, 28 August 2009 22:06 Go to next message
g6b0r is currently offline  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 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
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 #22926 is a reply to message #22923] Sat, 29 August 2009 01:46 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello Mirek

I have got the same error from an Ubuntu 8.04. All updated now.

When I click on Sync() in function RichText::GetInvalid line 129, cursor is moved to RichTxt::Sync in TxtPaint.cpp line 43.

However linker does not found it.

In Windows XP TheIde is compiled well.

Best regards
Koldo


Best regards
Iñaki
Re: 1538 compilation fails [message #22927 is a reply to message #22923] Sat, 29 August 2009 08:20 Go to previous messageGo to next message
g6b0r is currently offline  g6b0r
Messages: 11
Registered: August 2009
Promising Member
Hello Mirek,

What do you actually mean by Rebuild all?
I simply used "make" and then "make all" for the buidling.

Gabor
Re: 1538 compilation fails [message #22931 is a reply to message #22923] Sat, 29 August 2009 21:44 Go to previous messageGo to next message
g6b0r is currently offline  g6b0r
Messages: 11
Registered: August 2009
Promising Member
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
Re: 1538 compilation fails [message #22932 is a reply to message #22931] Sat, 29 August 2009 22:05 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
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.. Smile

Mirek
Re: 1538 compilation fails [message #22933 is a reply to message #22932] Sat, 29 August 2009 23:53 Go to previous message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello Mirek + Gabor

Thank you Smile. Now it TheIde compiles and runs well.

Best regards
Koldo


Best regards
Iñaki
Previous Topic: Warning: RichText
Next Topic: Funny way how NOT to speedup sorting of small arrays
Goto Forum:
  


Current Time: Sat Apr 20 13:23:24 CEST 2024

Total time taken to generate the page: 0.04032 seconds