Hi
 Thank you very much. I could build it.

Regards,
 Mike

On Sat, Feb 21, 2015 at 8:31 AM, Krishna Kishore <krishna.kishore at sasken.com
> wrote:

>
> Hi,
>
>      There is need of -lpthread while building client.
>      I overcame this error by including following in
> resource/examples/ocicuc/SConscript
>
>         ocicuc_env.AppendUnique(LIBS = ['pthread'])
>
>      Ofcourse, this has to be added conditionally. For example, for
> android -lpthread should not be included.
>
>
> Regards,
> Kishore
>
>  ------------------------------
> *From:* iotivity-dev-bounces at lists.iotivity.org [
> iotivity-dev-bounces at lists.iotivity.org] on behalf of Mike IoT [
> mikeiot49 at gmail.com]
> *Sent:* Saturday, February 21, 2015 5:11 PM
> *To:* iotivity-dev at lists.iotivity.org
> *Subject:* [dev] help: ocicuc sample compile error
>
>   Hi
>
>  I faced the following error. If someone help me, I appreciate it.
>
> g++ -o out/linux/x86_64/release/resource/examples/ocicuc/client -s -m64
> out/linux/x86_64/release/resource/examples/ocicuc/client.o
> out/linux/x86_64/release/resource/examples/ocicuc/driver.o
> out/linux/x86_64/release/resource/examples/ocicuc/utility.o
> -Lout/linux/x86_64/release -L. -loc -loctbstack -lcoap -loc_logger
> -lboost_program_options
> out/linux/x86_64/release/liboc.so: undefined reference to `pthread_create'
> collect2: error: ld returned 1 exit status
> scons: *** [out/linux/x86_64/release/resource/examples/ocicuc/client]
> Error 1
>
>
> ------------------------------
>
> SASKEN BUSINESS DISCLAIMER: This message may contain confidential,
> proprietary or legally privileged information. In case you are not the
> original intended Recipient of the message, you must not, directly or
> indirectly, use, disclose, distribute, print, or copy any part of this
> message and you are requested to delete it and inform the sender. Any views
> expressed in this message are those of the individual sender unless
> otherwise stated. Nothing contained in this message shall be construed as
> an offer or acceptance of any offer by Sasken Communication Technologies
> Limited ("Sasken") unless sent with that express intent and with due
> authority of Sasken. Sasken has taken enough precautions to prevent the
> spread of viruses. However the company accepts no liability for any damage
> caused by any virus transmitted by this email.
> Read Disclaimer at http://www.sasken.com/extras/mail_disclaimer.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150221/c0bd88c5/attachment.html>

Reply via email to