Hi Roger,
On 03/13/2013 05:18 PM, Roger Massey wrote:
> Alan,
>
> Just a quick one, I think the c.lib error on the CheckFunctionExists
> came from this line in CMakeLists.txt
>
> set(CMAKE_REQUIRED_LIBRARIES c ${CMAKE_REQUIRED_LIBRARIES}
> ${GLIB2_LIBRARIES})
>
> When I delete the c on windows I get a link error that it can't find
> glib-2.0.lib. I need to either get the glib-2.0.lib available at link
> time for this link of test code, or we need to do the linking of test
> code before we do the set above.
I thought I understood this. I don't.
So, having the 'c' in there avoids a link error.
Deleting it causes a link error. Link errors are bad. So having the
'c' is good(?).
Would changing the ordering of libraries help?
Maybe something like this?
set(CMAKE_REQUIRED_LIBRARIES ${GLIB2_LIBRARIES}
${CMAKE_REQUIRED_LIBRARIES} c )
So what is it exactly that you think we should do?
Did you make this locating of glib functions (like g_get_real_time())
work somehow?
If so, what made it work?
--
Alan Robertson <[email protected]> - @OSSAlanR
"Openness is the foundation and preservative of friendship... Let me claim
from you at all times your undisguised opinions." - William Wilberforce
_______________________________________________
Assimilation mailing list - Discovery-Driven Monitoring
[email protected]
http://lists.community.tummy.com/cgi-bin/mailman/listinfo/assimilation
http://assimmon.org/