On Mon, 22 Jun 2009 12:31:22 +0200, "Vincent R." <forumer@xxxxxxxxxxxxxxx> wrote: > On Sun, 21 Jun 2009 12:18:08 -0700, Gary Carlson > <gcarlson@xxxxxxxxxxxxxxxxx> wrote: >> Hi Vincent, >> >> Your libdl library issue sounds like a possible sysroot problem. When > you >> made binutils for your cross toolchain what did you specify as your >> sysroot? >> >> The easiest way to see where the linker is looking for libraries is to > pass >> an option to the linker to output verbose debugging information. It will >> show you exactly what paths it searches for link libraries. >> >> Create a simple test.c file and do the following: >> >> arm-none-symbianelf-gcc -Wl,--verbose -o test test.c >> > Yes it seems to be the reason : > > $ arm-none-symbianelf-gcc -o conftest > -I/c/gynoid/sdks/symbian/Nokia_N97_SDK_v0.5/epoc32/include > -I/c/gynoid/sdks/symbian/Nokia_N97_SDK_v0.5/epoc32/include/gcce > -I/c/gynoid/sdks/symbian/Nokia_N97_SDK_v0.5/epoc32/include/stdapis > -D__GCCE__ -D__SYMBIAN32__ -D__GCCE__ -D__EPOC32__ -D__MARM__ > -L/c/gynoid/sdks/symbian/Nokia_N97_SDK_v0.5/epoc32/release/armv5/lib > -L/c/gynoid/toolchains/arm-symbianelf/bin/lib -Wl,--verbose conftest.c -ldl > > > attempt to open > C:\\\\Users\\\\Vincent\\\\AppData\\\\Local\\\\Temp/ccSUaaaa.o succeeded > C:\\\\Users\\\\Vincent\\\\AppData\\\\Local\\\\Temp/ccSUaaaa.o > attempt to open > /c/gynoid/sdks/symbian/Nokia_N97_SDK_v0.5/epoc32/release/armv5/lib/libdl.so > failed > attempt to open > /c/gynoid/sdks/symbian/Nokia_N97_SDK_v0.5/epoc32/release/armv5/lib\libdl.a > failed > attempt to open /c/gynoid/toolchains/arm-symbianelf/bin/lib/libdl.so failed > attempt to open /c/gynoid/toolchains/arm-symbianelf/bin/lib\libdl.a failed > attempt to open > C:/gynoid/toolchains/arm-symbianelf/bin/../lib/gcc/arm-none-symbianelf/3.4.3/libdl.so > failed > attempt to open > C:/gynoid/toolchains/arm-symbianelf/bin/../lib/gcc/arm-none-symbianelf/3.4.3\libdl.a > failed > attempt to open C:/gynoid/toolchains/arm-symbianelf/bin/../lib/gcc/libdl.so > failed > attempt to open C:/gynoid/toolchains/arm-symbianelf/bin/../lib/gcc\libdl.a > failed > attempt to open > C:/gynoid/toolchains/arm-symbianelf/bin/../lib/gcc/arm-none-symbianelf/3.4.3/../../../../arm-none-symbianelf/lib/libdl.so > failed > attempt to open > C:/gynoid/toolchains/arm-symbianelf/bin/../lib/gcc/arm-none-symbianelf/3.4.3/../../../../arm-none-symbianelf/lib\libdl.a > failed > attempt to open > c:\gynoid\toolchains\arm-symbianelf\arm-none-symbianelf\bin\../lib/libdl.so > failed > attempt to open > c:\gynoid\toolchains\arm-symbianelf\arm-none-symbianelf\bin\../lib\libdl.a > failed > attempt to open /opt/codesourcery/arm-none-symbianelf/lib/libdl.so failed > attempt to open /opt/codesourcery/arm-none-symbianelf/lib\libdl.a failed > C:/gynoid/toolchains/arm-symbianelf/bin/../lib/gcc/arm-none-symbianelf/3.4.3/../../../../arm-none-symbianelf/bin/ld.exe: > cannot find -ldl > collect2: ld returned 1 exit status > > First it tries to open a .so or .a but it seems symbian sdk provides a .dso > and .lib and search path doesn't take paths given with -L. > > How can I fix that ? I found the solution. THANKS