Displaying 20 results from an estimated 64 matches for "__stdc_constant_macros".
Did you mean:
d__stdc_constant_macros
2010 Jul 03
1
[LLVMdev] DataTypes.h for Visual C
Testing for __STDC_CONSTANT_MACROS
has the advantage that you are forced to define __STDC_CONSTANT_MACROS
on win32. If you then switch to another platform the project still compiles.
-Jochen
2010 Nov 03
6
[LLVMdev] LLVM Cmake module?
...i/Programs/decac/src/jllvm/llvm/Analysis_wrap.c:190:
>> /usr/include/llvm/System/DataTypes.h:46: error: #error "Must #define
>> __STDC_LIMIT_MACROS before #including System/DataTypes.h"
>> /usr/include/llvm/System/DataTypes.h:50: error: #error "Must #define
>> __STDC_CONSTANT_MACROS before " "#including System/DataTypes.h"
>> make[2]: *** [CMakeFiles/jllvm.dir/Analysis_wrap.c.o] Error 1
>> make[1]: *** [CMakeFiles/jllvm.dir/all] Error 2
>> make: *** [all] Error 2
Yes, you must define __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS on
your CMake...
2010 Nov 04
0
[LLVMdev] LLVM Cmake module?
.../src/jllvm/llvm/Analysis_wrap.c:190:
>>> /usr/include/llvm/System/DataTypes.h:46: error: #error "Must #define
>>> __STDC_LIMIT_MACROS before #including System/DataTypes.h"
>>> /usr/include/llvm/System/DataTypes.h:50: error: #error "Must #define
>>> __STDC_CONSTANT_MACROS before " "#including System/DataTypes.h"
>>> make[2]: *** [CMakeFiles/jllvm.dir/Analysis_wrap.c.o] Error 1
>>> make[1]: *** [CMakeFiles/jllvm.dir/all] Error 2
>>> make: *** [all] Error 2
> Yes, you must define __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACR...
2011 Sep 08
2
[LLVMdev] How to fix an error like "Don't have a definition for uint64_t on this platform"?
Hi everyone!
I'm trying compile an compiler project that uses LLVM 2.9, and I'm having
difficult with the error "Don't have a definition for uint64_t on this
platform".
I set the '__STDC_LIMIT_MACROS' and '__STDC_CONSTANT_MACROS' defines, and
save the "DataTypes.h.in" as "DataTypes.h", to compiler can locate them.
I'm using C++Builder XE, in Win7.
How can I fix this?
Regards!
--
@geovanisouza92 - Geovani de Souza
-------------- next part --------------
An HTML attachment was scrubbed...
URL...
2016 Jun 19
2
Quality of LLVM headers
Hi LLVM,
I want to complain a bit about the quality of the code included in the
public LLVM headers. For projects that depend on LLVM is really hard to
just include LLVM headers not to trigger tons of warnings.
Moreover, the is this issue that you have to define __STDC_LIMIT_MACROS and
__STDC_CONSTANT_MACROS everywhere just to include single DataTypes.h.
Strangely, it seems to be required only when compiling with clang, not with
GCC.
Can we do anything to improve the situation?
I have just one idea, to add unittests that only include public headers
with higher compiler restrictions than for LLVM code...
2016 Jun 20
2
Quality of LLVM headers
...t; public LLVM headers. For projects that depend on LLVM is really hard to
>> > > just include LLVM headers not to trigger tons of warnings.
>> > >
>> > > Moreover, the is this issue that you have to define __STDC_LIMIT_MACROS
>> > and
>> > > __STDC_CONSTANT_MACROS everywhere just to include single DataTypes.h.
>> > > Strangely, it seems to be required only when compiling with clang, not
>> > with
>> > > GCC.
>> > >
>> > > Can we do anything to improve the situation?
>> > >
>> > >...
2010 Nov 03
0
[LLVMdev] LLVM Cmake module?
...> /home/eli/Programs/decac/src/jllvm/llvm/Analysis_wrap.c:190:
> /usr/include/llvm/System/DataTypes.h:46: error: #error "Must #define
> __STDC_LIMIT_MACROS before #including System/DataTypes.h"
> /usr/include/llvm/System/DataTypes.h:50: error: #error "Must #define
> __STDC_CONSTANT_MACROS before " "#including System/DataTypes.h"
> make[2]: *** [CMakeFiles/jllvm.dir/Analysis_wrap.c.o] Error 1
> make[1]: *** [CMakeFiles/jllvm.dir/all] Error 2
> make: *** [all] Error 2
Thanks for all your help,
Eli
2016 Jun 20
2
Quality of LLVM headers
...e quality of the code included in the
> > public LLVM headers. For projects that depend on LLVM is really hard to
> > just include LLVM headers not to trigger tons of warnings.
> >
> > Moreover, the is this issue that you have to define __STDC_LIMIT_MACROS
> and
> > __STDC_CONSTANT_MACROS everywhere just to include single DataTypes.h.
> > Strangely, it seems to be required only when compiling with clang, not
> with
> > GCC.
> >
> > Can we do anything to improve the situation?
> >
> > I have just one idea, to add unittests that only include publ...
2009 Aug 13
2
[LLVMdev] Build errors: llvm-gcc 4.3-2.5, x86-64.
...from ../../llvm-gcc-src/gcc/llvm-backend.cpp:23:
> [...]/llvm/include/llvm/Support/DataTypes.h:38:3: error: #error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
> [...]/llvm/include/llvm/Support/DataTypes.h:42:3: error: #error "Must #define __STDC_CONSTANT_MACROS before #including Support/DataTypes.h"
I've fiddled with make options a bit, and I'm not even sure how to get a
-D__STDC_LIMIT_MACROS option through the build system. (I don't think
it's the right way to fix this problem, I just thought that build might
fail informatively...
2010 Nov 03
2
[LLVMdev] LLVM Cmake module?
[Please CC the mailing list]
Eli Gottlieb <eligottlieb at gmail.com> writes:
> OK, I'm just going to paste in my CMakeLists.txt file. Like I said,
> I'm building an LLVM install myself by untarring llvm, mkdir build in
> the root dir of the source, cd build/, cmake .., make.
>
>> cmake_minimum_required (VERSION 2.6)
>> project (libjllvm)
>>
2011 Apr 08
0
[LLVMdev] dragonegg build failure
...b/gcc4.5/bin/gcc-4 LLVM_CONFIG=/sw/bin/llvm-config make VERBOSE=1 CPPFLAGS="-DENABLE_LTO -I/sw/include"
Compiling utils/TargetInfo.cpp
g++ -c -DTARGET_TRIPLE=\"x86_64-apple-darwin10.7.0\" \
-DENABLE_LTO -I/sw/include -I/sw/include -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -MD -MP -DIN_GCC -DREVISION=\"exported\" -DGCC_MAJOR=4 -DGCC_MINOR=5 -I/sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9 -I/sw/src/fink.build/dragonegg-gcc45-2.9-1/dragonegg-2.9/ADT -I/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.7.0/4.5.3/plugin/include -Wall -Wextra -fvisibility=hid...
2010 Jul 01
2
[LLVMdev] DataTypes.h for Visual C
Hi!
what about
#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS)
in front of the constant macros for visual c to emulate
the behaviour of stdint.h more precisely?
-Jochen
2011 Sep 09
0
[LLVMdev] How to fix an error like "Don't have a definition for uint64_t on this platform"?
On Thu, Sep 8, 2011 at 11:52 PM, geovanisouza92 at gmail.com <
geovanisouza92 at gmail.com> wrote:
> I set the '__STDC_LIMIT_MACROS' and '__STDC_CONSTANT_MACROS' defines, and
> save the "DataTypes.h.in" as "DataTypes.h", to compiler can locate them.
>
Don't do this, it's wrong. The "DataTypes.h" should be created from "
DataTypes.h.in" template during LLVM build process. So, begin from building
and...
2015 Sep 03
4
LLVM 3.7.0 build errors on Windows
.../COFF.h
I'm using Visual Studio Community 2015, the CXX compiler identification
is MSVC 19.0.23026.0
My CPP includes are:
WIN32
_WINDOWS
NDEBUG
_CRT_SECURE_NO_DEPRECATE
_CRT_SECURE_NO_WARNINGS
_CRT_NONSTDC_NO_DEPRECATE
_CRT_NONSTDC_NO_WARNINGS
_SCL_SECURE_NO_DEPRECATE
_SCL_SECURE_NO_WARNINGS
__STDC_CONSTANT_MACROS
__STDC_FORMAT_MACROS
__STDC_LIMIT_MACROS
_GNU_SOURCE
%(PreprocessorDefinitions)
Now, a couple of things are suspicious:
- in googling around it seems like there are some problems with
including Windows.h (which I have to include for other reasons) as well
as the LLVM headers, at least with previ...
2014 Jul 18
2
[LLVMdev] Bug in llvm/ADT/ArrayRef.h?
...tion call." They also provided a detailed explanation for their
opinion, which I think is correct. See this link for the full story:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61015
The following program demonstrates the bug using LLVM's own ArrayRef:
#define __STDC_LIMIT_MACROS
#define __STDC_CONSTANT_MACROS
#include <cstdio>
#include <llvm/ADT/ArrayRef.h>
class Obj {};
class SpecialObj : public Obj {};
int main()
{
SpecialObj* pSpecial = new SpecialObj();
llvm::ArrayRef<Obj*> arrayRef( pSpecial ); //Breaks on GCC-4.8.
/* Obj* pObj = pSpecial;
llvm::ArrayRef<Obj*> a...
2009 Aug 14
0
[LLVMdev] Build errors: llvm-gcc 4.3-2.5, x86-64.
...from ../../llvm-gcc-src/gcc/llvm-backend.cpp:23:
>> [...]/llvm/include/llvm/Support/DataTypes.h:38:3: error: #error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
>> [...]/llvm/include/llvm/Support/DataTypes.h:42:3: error: #error "Must #define __STDC_CONSTANT_MACROS before #including Support/DataTypes.h"
>
> I've fiddled with make options a bit, and I'm not even sure how to get a
> -D__STDC_LIMIT_MACROS option through the build system. (I don't think
> it's the right way to fix this problem, I just thought that build might...
2011 Apr 08
4
[LLVMdev] dragonegg build failure
> Is there anything I can do to make the build more verbose so I can debug this?
make VERBOSE=1
2012 Jul 10
0
[LLVMdev] Unable to do even basic Clang tutorial
.../Support/DataTypes.h:48:3: error: "Must #define __STDC_LIMIT_MACROS before #including
Support/DataTypes.h"
# error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
^
/home/ubuntu/bin/include/llvm/Support/DataTypes.h:52:3: error: "Must #define __STDC_CONSTANT_MACROS before "
"#including Support/DataTypes.h"
# error "Must #define __STDC_CONSTANT_MACROS before " \
^
In file included from tutorial1.cpp:6:
In file included from /home/ubuntu/bin/include/llvm/Support/Host.h:17:
In file included from /home/ubuntu/bin/include/llvm/ADT/...
2010 Apr 19
0
[LLVMdev] Problem with the installation of llvm gcc
You need to manually copy the llvm-gcc front-end binaries to somewhere
in your path. Alternatively, you can download the clang front-end and
start using that instead.
On Mon, Apr 19, 2010 at 10:58 AM, khaled hamidouche
<khaledhamidouche at gmail.com> wrote:
> Hello
>
> I'm trying to install LLVM and LLVM GCC
> so I check out the source of llvm and llvm-gcc-4.2 from the svn
2012 Jan 22
2
[LLVMdev] CreateGlobalStringPtr giving linker errors
...'s the codeI am trying to use some LLVM API in my C++ code, and I end
up getting linker errors. I am working on Apple MacOSX Lion. Using g++ for
the compile. It is the CreateGlobalStringPtr which is throwing the error.
This is LLVM 3.0.
Here's the code:
#define __STDC_LIMIT_MACROS
#define __STDC_CONSTANT_MACROS
#include "llvm/Support/DataTypes.h"
#include "llvm/Support/IRBuilder.h"
#include "llvm/LLVMContext.h"
#include "llvm/Module.h"
#include "llvm/Constants.h"
#include "llvm/Function.h"
#include "llvm/BasicBlock.h"
int main()
{
ll...