Displaying 20 results from an estimated 83 matches for "cstdlib".
Did you mean:
stdlib
2005 May 12
0
Using string from stdlib in winemaker
...229: error: `wmemset' undeclared
(first
use this function)
In file included from /usr/include/c++/3.3/bits/stl_algobase.h:67,
from /usr/include/c++/3.3/memory:54,
from /usr/include/c++/3.3/string:48,
from wndclass.cxx:2:
/usr/include/c++/3.3/cstdlib: At global scope:
/usr/include/c++/3.3/cstdlib:97: error: `div' not declared
/usr/include/c++/3.3/cstdlib:102: error: `ldiv' not declared
/usr/include/c++/3.3/cstdlib: In function `ldiv_t std::div(long int,
long int)
':
/usr/include/c++/3.3/cstdlib:122: error: `ldiv' undeclared (...
2008 Dec 31
1
wineg++ problem with the standard library
...ot been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:270: error: __gnu_cxx::wcstoll has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cwchar:271: error: __gnu_cxx::wcstoull has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:117: error: ::div has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:122: error: ::ldiv has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib: In function ldiv_t std::div(long int, long int):
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/inclu...
2017 Aug 02
2
Cross compiling C++ program
Hello,
As a newcomer to the libcxx implementation, I'll probably ask a silly question, but why following example can be compiled natively, but not cross compiled?
#include <cstdlib>
using ::atof;
int main() {
return 0;
}
Native compile: clang++ -o example example.cpp
Cross compile: clang++ -fno-builtin -fno-exceptions -fcheck-new -nostdlib -ffreestanding -target arm-none-eabi -march=armv7-m -mcpu=cortex-m4 -Wall -Wshadow -Wundef -g -Os -fno-strict-aliasing -fomit-frame-...
2018 Jan 18
2
[Release-testers] [6.0.0 Release] Release Candidate 1 tagged
...evice_ptr);
> ^
> /home/dim/llvm-6.0.0/rc1/llvm.src/projects/openmp/libomptarget/src/api.cpp:163:20:
> error: use of undeclared identifier 'malloc'
> void *buffer = malloc(length);
> ^
>
> I'm trying a local fix here, namely including <cstdlib> at the top of
> the file.
Argh, I have missed that header. Adding <cstdlib> sounds like the right
solution, can you submit a patch or directly commit to SVN if it works
for you?
If anyone else has problems building libomptarget in Debug: <string> was
missing in rtl.{cpp,h}...
2018 Jan 18
0
[Release-testers] [6.0.0 Release] Release Candidate 1 tagged
...;> ^
>> /home/dim/llvm-6.0.0/rc1/llvm.src/projects/openmp/libomptarget/src/api.cpp:163:20:
>> error: use of undeclared identifier 'malloc'
>> void *buffer = malloc(length);
>> ^
>> I'm trying a local fix here, namely including <cstdlib> at the top of the file.
>
> Argh, I have missed that header. Adding <cstdlib> sounds like the right solution, can you submit a patch or directly commit to SVN if it works for you?
I added <cstdlib> to api.cpp, interface.cpp and rtl.cpp, in r322869. Hans, could you please me...
2018 Jan 19
3
[Release-testers] [6.0.0 Release] Release Candidate 1 tagged
...gt; /home/dim/llvm-6.0.0/rc1/llvm.src/projects/openmp/libomptarget/src/api.cpp:163:20:
>>> error: use of undeclared identifier 'malloc'
>>> void *buffer = malloc(length);
>>> ^
>>> I'm trying a local fix here, namely including <cstdlib> at the top of the file.
>>
>> Argh, I have missed that header. Adding <cstdlib> sounds like the right solution, can you submit a patch or directly commit to SVN if it works for you?
>
> I added <cstdlib> to api.cpp, interface.cpp and rtl.cpp, in r322869. Hans, cou...
2018 Jan 20
0
[Release-testers] [6.0.0 Release] Release Candidate 1 tagged
...llvm-6.0.0/rc1/llvm.src/projects/openmp/libomptarget/src/api.cpp:163:20:
>>>> error: use of undeclared identifier 'malloc'
>>>> void *buffer = malloc(length);
>>>> ^
>>>> I'm trying a local fix here, namely including <cstdlib> at the top of the file.
>>>
>>> Argh, I have missed that header. Adding <cstdlib> sounds like the right solution, can you submit a patch or directly commit to SVN if it works for you?
>>
>> I added <cstdlib> to api.cpp, interface.cpp and rtl.cpp, in r...
2013 May 13
2
[LLVMdev] ASan unit test/libcxx build break
...r --std=c++11) the system
stdlib.h header must define aligned_alloc(). Really?
include/__config:
#if ( defined(__FreeBSD__) || defined(__linux__) ) && (__ISO_C_VISIBLE
>= 2011 || __cplusplus >= 201103L)
#define _LIBCPP_HAS_QUICK_EXIT
#define _LIBCPP_HAS_C11_FEATURES
#endif
include/cstdlib:
#include <__config>
#include <stdlib.h>
#ifdef _LIBCPP_HAS_C11_FEATURES
using ::aligned_alloc;
#endif
On Mon, May 13, 2013 at 9:37 AM, Kostya Serebryany <kcc at google.com> wrote:
> +eugenis
>
> I see this while running 'check-msan'.
>
>
>
> On Sun,...
2006 Aug 08
3
[LLVMdev] build error
>From CVS:
llvm[3]: Compiling SJLJ-Exception.cpp for Debug build (bytecode)
SJLJ-Exception.cpp:16:19: cstdlib: No such file or directory
SJLJ-Exception.cpp:17:19: cassert: No such file or directory
SJLJ-Exception.cpp: In function `void SJLJDestructor(llvm_exception*)':
SJLJ-Exception.cpp:43: error: `free' undeclared (first use this function)
SJLJ-Exception.cpp:43: error: (Each undeclared identifier...
2018 Jan 18
0
[Release-testers] [6.0.0 Release] Release Candidate 1 tagged
...dentifier 'free'
free(device_ptr);
^
/home/dim/llvm-6.0.0/rc1/llvm.src/projects/openmp/libomptarget/src/api.cpp:163:20: error: use of undeclared identifier 'malloc'
void *buffer = malloc(length);
^
I'm trying a local fix here, namely including <cstdlib> at the top of the file.
-Dimitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 223 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180118/825e40c9/...
2013 May 12
2
[LLVMdev] ASan unit test/libcxx build break
...ibcxx/include/istream:156:
In file included from
/usr/local/google/home/blaikie/dev/llvm/src/projects/libcxx/include/ostream:132:
In file included from
/usr/local/google/home/blaikie/dev/llvm/src/projects/libcxx/include/locale:187:
/usr/local/google/home/blaikie/dev/llvm/src/projects/libcxx/include/cstdlib:154:9:
error: no member named 'aligned_alloc' in the global namespace
using ::aligned_alloc;
~~^
1 error generated.
Not sure who/how this was caused (whether by libcxx or the asan unit
test it was included from, or some chain of includes along the way)
(on Linux, fwiw)
2004 Aug 19
4
[LLVMdev] Can't get llvmg++ to work
...ncluded from /usr/home/llvm/cfrontend/x86/llvm-gcc/bin/../lib/gcc/i686-pc-linux-gnu/3.4-llvm/../../../../include/c++/3.4-llvm/i686-pc-linux-gnu/bits/c++config.h:35,
from /usr/home/llvm/cfrontend/x86/llvm-gcc/bin/../lib/gcc/i686-pc-linux-gnu/3.4-llvm/../../../../include/c++/3.4-llvm/cstdlib:49,
from /usr/home/llvm/obj/../runtime/GCCLibraries/crtend/SJLJ-Exception.cpp:16:
/usr/home/llvm/cfrontend/x86/llvm-gcc/bin/../lib/gcc/i686-pc-linux-gnu/3.4-llvm/../../../../include/c++/3.4-llvm/i686-pc-linux-gnu/bits/os_defines.h:39:22: features.h: No such file or directory
In fil...
2013 May 13
0
[LLVMdev] ASan unit test/libcxx build break
...included from
>
> /usr/local/google/home/blaikie/dev/llvm/src/projects/libcxx/include/ostream:132:
> In file included from
>
> /usr/local/google/home/blaikie/dev/llvm/src/projects/libcxx/include/locale:187:
>
> /usr/local/google/home/blaikie/dev/llvm/src/projects/libcxx/include/cstdlib:154:9:
> error: no member named 'aligned_alloc' in the global namespace
> using ::aligned_alloc;
> ~~^
> 1 error generated.
>
> Not sure who/how this was caused (whether by libcxx or the asan unit
> test it was included from, or some chain of includes along the wa...
2015 Mar 31
2
[LLVMdev] why we assume malloc() always returns a non-null pointer in instruction combing?
...forms/InstCombine/malloc-free-delete.ll
against me to directly fix it. The test is,
define i1 @foo() {
; CHECK-LABEL: @foo(
; CHECK-NEXT: ret i1 false
%m = call i8* @malloc(i32 1)
%z = icmp eq i8* %m, null
call void @free(i8* %m)
ret i1 %z
}
According to http://www.cplusplus.com/reference/cstdlib/malloc/, malloc may
return null if this memory allocation fails. So why we assume malloc()
always returns a non-null pointer here?
I think we can do such optimization with operator new, because new never
returns null. But for all malloc like allocation(malloc, calloc, and new
with std::nothrow), w...
2004 Aug 19
0
[LLVMdev] Can't get llvmg++ to work
...ed from /usr/home/llvm/cfrontend/x86/llvm-gcc/bin/../lib/gcc/i686-pc-linux-gnu/3.4-llvm/../../../../include/c++/3.4-llvm/i686-pc-linux-gnu/bits/c++config.h:35,
> from /usr/home/llvm/cfrontend/x86/llvm-gcc/bin/../lib/gcc/i686-pc-linux-gnu/3.4-llvm/../../../../include/c++/3.4-llvm/cstdlib:49,
> from /usr/home/llvm/obj/../runtime/GCCLibraries/crtend/SJLJ-Exception.cpp:16:
> /usr/home/llvm/cfrontend/x86/llvm-gcc/bin/../lib/gcc/i686-pc-linux-gnu/3.4-llvm/../../../../include/c++/3.4-llvm/i686-pc-linux-gnu/bits/os_defines.h:39:22: features.h: No such file or direct...
2013 May 13
0
[LLVMdev] ASan unit test/libcxx build break
...( defined(__FreeBSD__) || defined(__linux__) ) && (__ISO_C_VISIBLE
> >= 2011 || __cplusplus >= 201103L)
> #define _LIBCPP_HAS_QUICK_EXIT
> #define _LIBCPP_HAS_C11_FEATURES
> #endif
>
>
I added that line since libc on linux defines at_quick_exit.
>
> include/cstdlib:
>
> #include <__config>
> #include <stdlib.h>
> #ifdef _LIBCPP_HAS_C11_FEATURES
> using ::aligned_alloc;
> #endif
And yes my stdlib.h has
/usr/include/stdlib.h:extern void *aligned_alloc (size_t __alignment,
size_t __size)
I am guessing you are running on this on...
2018 Dec 29
2
bootstrapping llvm with advanced configuration
...STALL_PREFIX=/usr/local -GNinja
-DCLANG_ENABLE_BOOTSTRAP=ON ../toolchain70/llvm/
after that cmake command I run ninja stage2 which compiles about 3700
objects then it proceeds to try and compile the full 5000 plus objects but
fails with errors like these:
_toolchain70/llvm/projects/libcxx/include/cstdlib:114:9: error: no member
named 'strtold' in the global namespace
using ::strtold;
~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
I'd like to bootstrap clang and build libc++ and libc++abi, then use the
compiled clang to build clang++ and link against libc+...
2015 Mar 31
2
[LLVMdev] why we assume malloc() always returns a non-null pointer in instruction combing?
...> define i1 @foo() {
>> ; CHECK-LABEL: @foo(
>> ; CHECK-NEXT: ret i1 false
>> %m = call i8* @malloc(i32 1)
>> %z = icmp eq i8* %m, null
>> call void @free(i8* %m)
>> ret i1 %z
>> }
>>
>> According to http://www.cplusplus.com/reference/cstdlib/malloc/, malloc may
>> return null if this memory allocation fails. So why we assume malloc()
>> always returns a non-null pointer here?
>>
>> I think we can do such optimization with operator new, because new never
>> returns null. But for all malloc like allocation(m...
2009 Dec 02
2
[LLVMdev] patch for portability
I've completed a survey of llvm for unnecessary dependencies on libstdc++, and on conflicts with the upcoming C++0X standard, and am recommending several changes in the enclosed patch (created with svn diff).
Here is a summary of the patch:
---
#include <cstdlib> added to LinkAllVMCore.h and LinkAllCodegenComponents.h to declare std::getenv.
Changed next(...) to llvm::next(...) in many places. I only changed those instances which were actually required to avoid ambiguity. I left other calls to next() unqualified. I do not have strong feelings about...
2011 May 30
2
[LLVMdev] Expressiveness of column numbers in dwarf using clang 3.0?
...the column numbers (extracted from the DWARF line table) with
the corresponding source code locations, it becomes clear that they are
not very "useful".
Consider the following small example (C++):
1: #include <iostream>
2: #include <ctime>
3: #include <cstdlib>
4: using namespace std;
5: int main() {
6: int j = 0; cin >> j; long sum = (j < 0 ? -5 : 4) + rand();
7: for(int i = 0; i < j; i++) { sum += j*j-2; cout << (sum / 2)
<< endl; }
8: srand(time(NULL));
9: double d = rand()...