{"action":"created","issue":{"url":"https://api.github.com/repos/acplt/open62541/issues/254","labels_url":"https://api.github.com/repos/acplt/open62541/issues/254/labels{/name}","comments_url":"https://api.github.com/repos/acplt/open62541/issues/254/comments","events_url":"https://api.github.com/repos/acplt/open62541/issues/254/events","html_url":"https://github.com/acplt/open62541/issues/254","id":80999177,"number":254,"title":"client.c cannot link to UA_calcSizeBinary?","user":{"login":"ichrispa","id":2773265,"avatar_url":"https://avatars.githubusercontent.com/u/2773265?v=3","gravatar_id":"","url":"https://api.github.com/users/ichrispa","html_url":"https://github.com/ichrispa","followers_url":"https://api.github.com/users/ichrispa/followers","following_url":"https://api.github.com/users/ichrispa/following{/other_user}","gists_url":"https://api.github.com/users/ichrispa/gists{/gist_id}","starred_url":"https://api.github.com/users/ichrispa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ichrispa/subscriptions","organizations_url":"https://api.github.com/users/ichrispa/orgs","repos_url":"https://api.github.com/users/ichrispa/repos","events_url":"https://api.github.com/users/ichrispa/events{/privacy}","received_events_url":"https://api.github.com/users/ichrispa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/acplt/open62541/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-26T14:54:43Z","updated_at":"2015-05-26T15:30:56Z","closed_at":null,"body":"While I somehow got this to work on Friday, I broke it somehow and don't know whats wrong.\r\n\r\nI am testing the AddNodes service in the client. I need to pack the NodeAttributes into an ExtensionObject. But calling either `UA_calcSizeBinary()` or `UA_encodeBinary()` (or their respective type-macros) always results in a link error:\r\n\r\n     Linking C executable client\r\n     CMakeFiles/client.dir/examples/client.c.o: In function `main':\r\n     /home/ichrispa/work/svn/working_copies/open62541/examples/client.c:121: undefined reference  to `UA_calcSizeBinary'\r\n     /home/ichrispa/work/svn/working_copies/open62541/examples/client.c:123: undefined reference to `UA_encodeBinary'\r\n\r\nThe symbol is defined in libopen62541.so as it should be:\r\n\r\n     objdump -tT libopen62541.so  | grep calcSize\r\n     ...\r\n     0000000000009e60 l     F .text  00000000000002db              UA_calcSizeBinary\r\n     ...\r\n\r\nI also tried to define UA_calcSizeBinary as extern in the client.c, which changed nothing.\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/acplt/open62541/issues/comments/105568798","html_url":"https://github.com/acplt/open62541/issues/254#issuecomment-105568798","issue_url":"https://api.github.com/repos/acplt/open62541/issues/254","id":105568798,"user":{"login":"ichrispa","id":2773265,"avatar_url":"https://avatars.githubusercontent.com/u/2773265?v=3","gravatar_id":"","url":"https://api.github.com/users/ichrispa","html_url":"https://github.com/ichrispa","followers_url":"https://api.github.com/users/ichrispa/followers","following_url":"https://api.github.com/users/ichrispa/following{/other_user}","gists_url":"https://api.github.com/users/ichrispa/gists{/gist_id}","starred_url":"https://api.github.com/users/ichrispa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ichrispa/subscriptions","organizations_url":"https://api.github.com/users/ichrispa/orgs","repos_url":"https://api.github.com/users/ichrispa/repos","events_url":"https://api.github.com/users/ichrispa/events{/privacy}","received_events_url":"https://api.github.com/users/ichrispa/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T15:30:56Z","updated_at":"2015-05-26T15:30:56Z","body":"Fixable by adding `__attribute__ ((visibility (\"default\")))` (`UA_EXPORT`) to calcSizeBinary/encodeBinary, but I'm not sure this is ideal."}}