Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json_reformat should link against libm #68

Open
abique opened this issue Jan 9, 2012 · 1 comment
Open

json_reformat should link against libm #68

abique opened this issue Jan 9, 2012 · 1 comment

Comments

@abique
Copy link

abique commented Jan 9, 2012

Here is the patch:

--- a/reformatter/CMakeLists.txt 2011-12-20 01:23:22.000000000 +0100
+++ b/reformatter/CMakeLists.txt 2012-01-09 14:37:48.950202826 +0100
@@ -26,7 +26,7 @@

ADD_EXECUTABLE(json_reformat ${SRCS})

-TARGET_LINK_LIBRARIES(json_reformat yajl_s)
+TARGET_LINK_LIBRARIES(json_reformat yajl_s m)

copy the binary into the output directory

GET_TARGET_PROPERTY(binPath json_reformat LOCATION)

@shahbag
Copy link
Contributor

shahbag commented Mar 8, 2013

This is specific to qnx.

build error with qnx6.5.0


../yajl-2.0.1/lib/libyajl_s.a(yajl_gen.c.obj): In function yajl_gen_double': yajl_gen.c:(.text+0x5b9): undefined reference to_DclassBuilding C object example/CMakeFiles/parse_config.dir/parse_config.c.obj
'
yajl_gen.c:(.text+0x5cf): undefined reference to `_Dclass'
cc: /opt/qnx650/host/linux/x86/usr/bin/ntox86-ld error 1
make[2]: *** [reformatter/json_reformat] Error 1


any platform that links does not link libm while linking libstdc

http://community.qnx.com/sf/discussion/do/listPosts/projects.toolchain/discussion.core_development_tools.topc10811?_pagenum=2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants