That does seem to be a miss in the build file.  the libs path should
take the build-type instead of specifically saying release.  I'm not
sure where we store that directory, so this'll need digging into.

On Wed, 2015-04-29 at 15:34 +0000, Light, John J wrote:
> I get 
> 
>  
> 
> Linking out/linux/x86_64/debug/examples/OICMiddle/OICMiddle
> 
> out/linux/x86_64/debug/libconnectivity_abstraction.a(caprotocolmessage.o): In 
> function `CAParsePDU':
> 
> /home/john/oic/iotivity/resource/csdk/connectivity/src/caprotocolmessage.c:201:
>  undefined reference to `coap_new_pdu'
> 
> out/linux/x86_64/debug/libconnectivity_abstraction.a(caprotocolmessage.o): In 
> function `CAGeneratePDUImpl':
> 
> /home/john/oic/iotivity/resource/csdk/connectivity/src/caprotocolmessage.c:229:
>  undefined reference to `coap_new_pdu'
> 
> collect2: error: ld returned 1 exit status
> 
> scons: *** [out/linux/x86_64/debug/examples/OICMiddle/OICMiddle] Error
> 1
> 
> scons: building terminated because of errors.
> 
>  
> 
> The problem appears to be this line in its SConstruct:
> 
>  
> 
> OIC_LIBS_PATH = '../../out/linux/x86_64/release'
> 
>  
> 
> since I am building the debug version.  How do I get it to use the
> appropriate libraries instead of the release libraries?
> 
>  
> 
> New to scons.  Even though I wrote OICMiddle, somebody else wrote the
> SConstruct and SConstruct files in the directory.  Why both?
> 
>  
> 
> John Light
> 
> 
> _______________________________________________
> iotivity-dev mailing list
> iotivity-dev at lists.iotivity.org
> https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to