Questions tagged [libc++]

libc++ is an open C++ Standard Library implementation, and a subproject of LLVM.org. It has been designed for C++11.

419 questions
0
votes
0 answers

Linux stdlibc++ linker error on different computers

I wrote an application in C++ for linux (X11, GLX) and it is working alright on my development computer (32-bit linux on 64-bit capable hardware). However, when I ran it on a 64-bit linux downstairs, I received an error telling me the linker failed…
user209347
  • 217
  • 3
  • 9
0
votes
1 answer

Linking GraphicsMagick on Mac OSX 10.8 with clang and libc++

I've been trying to include GraphicsMagick into my project for the last couple days but without luck, hopefully someone here might be able to help me (See TL/DR at the end if this is too long). As I need JPEG, PNG and lcms support, I previously…
Uflex
  • 1,316
  • 1
  • 12
  • 28
0
votes
1 answer

xmlrpc-c problems when adding values from std::vector to xmlrpc_c::paramList

I am using xmlrpc-c 1.33.9 , compiled with libc++ and c++11 on OSX Mavericks. std::vector parameters; parameters.push_back(ValueInt(x)); parameters.push_back(ValueInt(y)); int paramsize = parameters.size(); xmlrpc_c::paramList…
Yamamushi
  • 1
  • 3
0
votes
2 answers

Cmake/cpack: how to create a libc++ static library deb without headers?

I have been trying to create a deb for LLVM libc++ 3.4 on a Ubuntu 12.04LTS 64bit box tonight. I would like to first create a deb that just consists of just /usr/lib64/libc++.a without any headers. Yes, I know per Debian library packaging guide, I…
user183394
  • 963
  • 1
  • 8
  • 20
0
votes
1 answer

libc++abi.dylib dyld error after updating xcode to 5.0

After updating XCode to 5.0 (in Mac OS X 10.8) I have encountered following issue: dyld`dyld_fatal_error: 0x7fff5fc0109c: int3 0x7fff5fc0109d: nop with debug message: dyld: Symbol not found: __ZdlPv Referenced from:…
ravyr
  • 76
  • 4
0
votes
1 answer

Eclipse CDT with llvm's libc++ compilation err under ubuntu?

I can compile and run c++ example in command line like this: clang++ -std=c++11 -stdlib=libc++ Test.cpp But when trying this in eclipse,I got these errors 12:58:18 **** Incremental Build of configuration Debug for project C++Test **** Info:…
Alex Luya
  • 7,516
  • 12
  • 51
  • 78
0
votes
1 answer

Linker returning "Undefined symbols" for symbols that are in a library being linked

I'm compiling OpenTTD on Mavericks. The only change I have made is to define CXXFLAGS="-stdlib=stdc++". When linking, I get many linker errors that look like this: "std::string::compare(char const*) const", referenced from: LoadTranslations()…
leecbaker
  • 3,283
  • 2
  • 31
  • 48
0
votes
1 answer

Libc++ linked programs fail with symbol lookup error

I've recently built libc++ from scratch as my prject needs some features that are not yet implemnted in libstdc++. I try to compile the hello world program located in src/main.cpp with line clang -Wall -stdlib=libc++ -std=c++11 -c src/main.cpp…
agt
  • 1
  • 1
0
votes
0 answers

std::vector and move constructor not working with clang and libc++

I'm trying to understand the new move constructor from C++11 following an example from the book "Professional C++", 2nd ed., chapter 9, page 279. Here is my class header file Spreadsheet.h: class Spreadsheet { public: Spreadsheet(int…
Henrique Barcelos
  • 7,114
  • 1
  • 34
  • 61
0
votes
1 answer

ld: unknown option: -reexported_symbols_list when building libc++ on mac os x 10.6.8

Any suggestions for resolving the following error (unknown option passed to ld) will be highly appreciated. The "buildit" script is the one from http://libcxx.llvm.org/ with the line export TRIPLE=-apple- added to it. Thanks in advance System…
Drake
  • 845
  • 5
  • 10
0
votes
1 answer

Using libc++ causes GDB to segfault on OS X

I'm trying to use C++11 (with Clang and libc++ on OS X) for a program, but whenever I debug with gdb and try to inspect standard containers, gdb segfaults. Here's a minimal example: file.cpp: #include #include int main(int argc,…
Cornstalks
  • 34,193
  • 13
  • 69
  • 132
0
votes
1 answer

How can I use XCode's libc++ with top-of-trunk clang?

When compiling this file #include int main(int argc, char* argv[]) { std::vector IntVector; } using the version of clang shipping with Xcode, I can tell clang to use llvm's libc++ like this: $ clang -std=c++11 -stdlib=libc++ t.cpp…
Tobias
  • 5,950
  • 3
  • 33
  • 60
0
votes
1 answer

Can't choose libc++ or libstdc++ in XCode

I am trying to build a project in XCode which uses both Cinder and OpenSubdiv. They conflict in many ways and I have solved most problems but the last one is giving me a headache. I have a linker error: "Undefined symbols for architecture x86_64:…
DaleyPaley
  • 171
  • 1
  • 10
0
votes
1 answer

reproduce libc++/libstdc++ ABI incompatibility on Linux

A friend of mine and I are working on a project using C++11. He is using OS X and I am using Linux. As libc++ and libstdc++ are not ABI-compatibel, we have to make sure not to mix the up between our libraries and our application. However we…
Random Citizen
  • 1,086
  • 3
  • 13
  • 28
0
votes
3 answers

OpenCV Error: Assertion failed in cvAdaptiveThreshold

I recently started some OpenCV programming on OSX (just using text editor and compiling in terminal). I found program on the internet that is very useful to me but can't seem to run it. This is the code: #include #include "cv.h" #include…
Moirae
  • 139
  • 2
  • 14
1 2 3
27
28