Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Unable to link examples
Unable to link examples [message #9044] |
Sun, 15 April 2007 11:16 |
manuel84
Messages: 2 Registered: April 2007
|
Junior Member |
|
|
Hi everybody,
I've read an announcement on comp.lang.c++ and I've compiled Ultimate++ from sources.
My system is Linux, Kubuntu 6.10, g++ compiler 4.1.2, all development libs required from examples are available on my machine.
Build works fine, TheIDE starts and works fine, too, but I'm not able to make examples work. They compile, but on linking stage I got a mess of errors and warnings such as:
This is a warning:
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libX11.a(C rGlCur.o): In function `open_library':
(.text+0x3b): warning: Using 'dlopen' in statically linked applications requires at runtime the shared librari
es from the glibc version used for linking
--------------------
This is an error:
(.text+0x6b0): undefined reference to `jpeg_CreateCompress'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libgdk_pix buf-2.0.a(io-jpeg.o): In function `real_save_jpeg'
How can I get rid of them?
A fun story: I compiled and ran succesfully a C example using GNU Scientific Libraries as a C++, just adding compiler and linker flags.
P.S: I tried to tell IDE include directories, but nothing works.
Please help me
Emanuele
|
|
|
|
|
|
Re: Unable to link examples [message #9091 is a reply to message #9044] |
Tue, 17 April 2007 03:45 |
lectus
Messages: 329 Registered: September 2006 Location: Brazil
|
Senior Member |
|
|
Linking errors with upp-mingw too:
Linking...
/mingw/lib/crt2.o:crt1.c:(.text+0x16a): undefined reference to `__cpu_features_init'
collect2: ld returned 1 exit status
How to solve that?
|
|
|
Goto Forum:
Current Time: Mon Jun 10 13:13:48 CEST 2024
Total time taken to generate the page: 0.00978 seconds
|