{"action":"closed","issue":{"url":"https://api.github.com/repos/davisking/dlib/issues/200","repository_url":"https://api.github.com/repos/davisking/dlib","labels_url":"https://api.github.com/repos/davisking/dlib/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/davisking/dlib/issues/200/comments","events_url":"https://api.github.com/repos/davisking/dlib/issues/200/events","html_url":"https://github.com/davisking/dlib/issues/200","id":172609013,"number":200,"title":"-DDLIB_USE_LAPACK throws compiler errors","user":{"login":"don-prog","id":6806786,"avatar_url":"https://avatars.githubusercontent.com/u/6806786?v=3","gravatar_id":"","url":"https://api.github.com/users/don-prog","html_url":"https://github.com/don-prog","followers_url":"https://api.github.com/users/don-prog/followers","following_url":"https://api.github.com/users/don-prog/following{/other_user}","gists_url":"https://api.github.com/users/don-prog/gists{/gist_id}","starred_url":"https://api.github.com/users/don-prog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/don-prog/subscriptions","organizations_url":"https://api.github.com/users/don-prog/orgs","repos_url":"https://api.github.com/users/don-prog/repos","events_url":"https://api.github.com/users/don-prog/events{/privacy}","received_events_url":"https://api.github.com/users/don-prog/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-23T04:16:51Z","updated_at":"2016-08-23T10:38:02Z","closed_at":"2016-08-23T10:38:02Z","body":"I use DLIB on iOS. All looks good but I can't use `-DDLIB_USE_LAPACK` C++ flag because I get:\r\n\r\n```\r\nUndefined symbols for architecture armv7:\r\n  \"_dgesvd_\", referenced from:\r\n      int dlib::lapack::gesvd<double, 0l, 0l, 0l, 0l, 0l, 0l, 0l, 0l, dlib::memory_manager_stateless_kernel_1<char> >(char, char, dlib::matrix<double, 0l, 0l, dlib::memory_manager_stateless_kernel_1<char>, dlib::row_major_layout>&, dlib::matrix<double, 0l, 0l, dlib::memory_manager_stateless_kernel_1<char>, dlib::row_major_layout>&, dlib::matrix<double, 0l, 0l, dlib::memory_manager_stateless_kernel_1<char>, dlib::row_major_layout>&, dlib::matrix<double, 0l, 0l, dlib::memory_manager_stateless_kernel_1<char>, dlib::row_major_layout>&) in objctest.o\r\nld: symbol(s) not found for architecture armv7\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n```\r\nAlso I get ld warnings about ignoring dependencies libraries:\r\n```\r\nld: warning: ignoring file /Users/user/Documents/XcodeProjects/Swift_HelloWorld/dependencies/libSystem.B.dylib, missing required architecture armv7 in file /Users/user/Documents/XcodeProjects/Swift_HelloWorld/dependencies/libSystem.B.dylib (2 slices)\r\nld: warning: ignoring file /Users/user/Documents/XcodeProjects/Swift_HelloWorld/dependencies/libLAPACK.dylib, missing required architecture armv7 in file /Users/user/Documents/XcodeProjects/Swift_HelloWorld/dependencies/libLAPACK.dylib (2 slices)\r\nld: warning: ignoring file /Users/user/Documents/XcodeProjects/Swift_HelloWorld/dependencies/libJPEG.dylib, missing required architecture armv7 in file /Users/user/Documents/XcodeProjects/Swift_HelloWorld/dependencies/libJPEG.dylib (3 slices)\r\nld: warning: ignoring file /Users/user/Documents/XcodeProjects/Swift_HelloWorld/dependencies/libPng.dylib, missing required architecture armv7 in file /Users/user/Documents/XcodeProjects/Swift_HelloWorld/dependencies/libPng.dylib (3 slices)\r\nld: warning: ignoring file /Users/user/Documents/XcodeProjects/Swift_HelloWorld/dependencies/libsqlite3.dylib, missing required architecture armv7 in file /Users/user/Documents/XcodeProjects/Swift_HelloWorld/dependencies/libsqlite3.dylib (3 slices)\r\nld: warning: ignoring file /Users/user/Documents/XcodeProjects/Swift_HelloWorld/dependencies/libBLAS.dylib, missing required architecture armv7 in file /Users/user/Documents/XcodeProjects/Swift_HelloWorld/dependencies/libBLAS.dylib (2 slices)\r\nld: warning: ignoring file /usr/local/lib/DLIB/iOS/libdlib.a, file was built for archive which is not the architecture being linked (armv7): /usr/local/lib/DLIB/iOS/libdlib.a\r\n```\r\nHow can I fix it? And what will happen if I will not use `-DDLIB_USE_LAPACK` C++ flag?"}}
{"actor":{"display_login":"davisking"}}