missing-symbols

Objective-C Class Reference: Symbols not found error

ⅰ亾dé卋堺 提交于 2020-01-10 14:15:26
问题 I've been working on this iPhone app for a while now, and I had it completely finished and working. The project I was expanding on was downloaded from a subversion repository online that my professor had given me access too. I accidentally didn't download the "root" copy or something like that, so I wasn't able to commit any changes to the repository. With my instructors help, I downloaded the root copy today and added all my class files to it so I could commit the changes. However, I am now

Taking pointer to member std::string::size fails to link with libc++ but works with libstdc++

烈酒焚心 提交于 2019-12-07 17:20:43
问题 I'm on a project where I need to use libc++. I'm come up with the following problem: When I try to compile the following code: #include <string> int main() { std::string::size_type (std::string::*function)() const = &std::string::size; return 0; } I get the following error: ld: symbol(s) not found for architecture x86_64 If I use the libstdc++ instead of libc++ I get no errors so the issue should to be related with libc++. Full output below: clang++ --stdlib=libc++ -v main.cpp Apple LLVM

Taking pointer to member std::string::size fails to link with libc++ but works with libstdc++

跟風遠走 提交于 2019-12-05 19:51:40
I'm on a project where I need to use libc++. I'm come up with the following problem: When I try to compile the following code: #include <string> int main() { std::string::size_type (std::string::*function)() const = &std::string::size; return 0; } I get the following error: ld: symbol(s) not found for architecture x86_64 If I use the libstdc++ instead of libc++ I get no errors so the issue should to be related with libc++. Full output below: clang++ --stdlib=libc++ -v main.cpp Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.1.0 Thread model: posix "