<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Hi again,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have some trouble linking to libraries shipped
with the sdk. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1. There is a
"c:/Symbian/9.2/S60_3rd_FP1/EPOC32/RELEASE/ARMV5/UREL/usrt2_2.lib" I have to
link against.<BR>The built in Symbian make tools start the linker directly and
pass usrt2_2.lib with the full path name within group "-( -)" delimiters:<BR>:
arm-none-symbianelf-ld ... -(
\Symbian\9.2\S60_3rd_FP1\EPOC32\RELEASE\ARMV5\UREL\usrt2_2.lib -)
...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>when I add
c:/Symbian/9.2/S60_3rd_FP1/EPOC32/RELEASE/ARMV5/UREL to LINK_DIRECTORIES and
call<BR>: TARGET_LINK_LIBRARIES( usrt2_2 )</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>the linker (actual gcc) returns:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>:
C:/PROGRA~1/CSLARM~1/bin/../lib/gcc/arm-none-symbianelf/3.4.3/../../../../arm-none-symbianelf/bin/ld.exe:
cannot find -lusrt2_2.lib<BR>: collect2: ld returned 1 exit status</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=062430413-07082008><FONT face=Arial size=2>involving the linker
manually and passing</FONT></SPAN></DIV>
<DIV><SPAN class=062430413-07082008><FONT face=Arial size=2>:
arm-none-symbianelf-ld ... </FONT></SPAN><SPAN
class=062430413-07082008><FONT face=Arial
size=2>-LC:\Symbian\9.2\S60_3rd_FP1\Epoc32\release\armv5\urel -lusrt2_2.lib
--verbose</FONT></SPAN></DIV>
<DIV><SPAN class=062430413-07082008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=062430413-07082008><FONT face=Arial
size=2>returns</FONT></SPAN></DIV>
<DIV><SPAN class=062430413-07082008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=062430413-07082008><FONT face=Arial size=2><SPAN
class=062430413-07082008><FONT face=Arial size=2>: </FONT></SPAN>attempt to open
C:\Program Files\CSL Arm
Toolchain\bin\..\arm-none-symbianelf\lib/libusrt2_2.lib.so failed<BR><SPAN
class=062430413-07082008><FONT face=Arial size=2>: </FONT></SPAN>attempt to open
C:\Program Files\CSL Arm
Toolchain\bin\..\arm-none-symbianelf\lib\libusrt2_2.lib.a failed<BR><SPAN
class=062430413-07082008><FONT face=Arial size=2>: </FONT></SPAN>attempt to open
C:\Program Files\CSL Arm
Toolchain\bin\..\lib\gcc\arm-none-symbianelf\3.4.3/libusrt2_2.lib.so
failed<BR><SPAN class=062430413-07082008><FONT face=Arial size=2>:
</FONT></SPAN>attempt to open C:\Program Files\CSL Arm
Toolchain\bin\..\lib\gcc\arm-none-symbianelf\3.4.3\libusrt2_2.lib.a
failed<BR><SPAN class=062430413-07082008><FONT face=Arial size=2>:
</FONT></SPAN>attempt to open
\Symbian\9.2\S60_3rd_FP1\EPOC32\RELEASE\ARMV5\UREL/libusrt2_2.lib.so
failed<BR><SPAN class=062430413-07082008><FONT face=Arial size=2>:
</FONT></SPAN>attempt to open
\Symbian\9.2\S60_3rd_FP1\EPOC32\RELEASE\ARMV5\UREL\libusrt2_2.lib.a
failed</FONT></SPAN></DIV>
<DIV><SPAN class=062430413-07082008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=062430413-07082008>So the linker
seems to recognize .lib files only when they're passed without -l and with full
pathname. </SPAN>How do I tell the linker to look for .lib
libraries?</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><FONT face=Arial size=2>
<DIV><BR>and another one:</DIV>
<DIV> </DIV>
<DIV><BR>2. the "original" linker command produced by the Symbian make system
involves .dso files:<BR>: arm-none-symbianelf-ld ...
\Symbian\9.2\S60_3rd_FP1\EPOC32\RELEASE\ARMV5\LIB\libc.dso ..</DIV>
<DIV> </DIV>
<DIV>can this done by CMake too?</DIV>
<DIV> </DIV>
<DIV><BR>Thanks,<BR>Frans</DIV>
<DIV></FONT> </DIV><pre>
----------------------------------------------------------------
Please note: This e-mail may contain confidential information
intended solely for the addressee. If you have received this
e-mail in error, please do not disclose it to anyone, notify
the sender promptly, and delete the message from your system.
Thank you.
</pre>
</BODY></HTML>