Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] llvm library linking issues"
2012 Jul 17
0
[LLVMdev] llvm library linking issues
Eugene, how about below?
$ clang clangtest.cpp `llvm-config --ldflags --libs core`
(I guess linking order would be)
2012/7/18 Eugene <code_ep at yahoo.com>:
> The output of `llvm-config --cppflags --ldflags --libs core support` and
> `llvm-config --cppflags --ldflags --libs core` is the same. I've also tried specifying -lLLVMSupport manually. Same result.
>
> --Eugene
>
2012 Jul 17
2
[LLVMdev] llvm library linking issues
I do this, and I've tried a few variations of on it:
clang++ `llvm-config --cppflags --ldflags --libs core` -o clangtest clangtest.cpp
I've also tried removing the library and the include file in turn, which in both cases succefully made the compiler not find the files needed.
----- Original Message -----
Hi Eugene,
On 17/07/12 03:46, Eugene wrote:
> I'm trying to make use of
2012 Jul 17
0
[LLVMdev] llvm library linking issues
Hi Eugene,
> I do this, and I've tried a few variations of on it:
> clang++ `llvm-config --cppflags --ldflags --libs core` -o clangtest clangtest.cpp
the missing routine is defined in the support library, not the core library, try
--libs core support
Ciao, Duncan.
>
> I've also tried removing the library and the include file in turn, which in both cases succefully made the
2012 Jul 17
2
[LLVMdev] llvm library linking issues
I'm trying to make use of the llvm compiler libraries, but I can't get them to link to my program correctly.
#include <llvm/Constants.h>
#include <llvm/DerivedTypes.h>
int main(){
llvm::APInt(1,0);
return 0;
}
I get an error like:
undefined reference to `llvm::APInt::initSlowCase(unsigned int, unsigned long long, bool)
(this function is called by the inline
2012 Jul 17
0
[LLVMdev] llvm library linking issues
Hi Eugene,
On 17/07/12 03:46, Eugene wrote:
> I'm trying to make use of the llvm compiler libraries, but I can't get them to link to my program correctly.
>
> #include <llvm/Constants.h>
> #include <llvm/DerivedTypes.h>
>
>
> int main(){
>
> llvm::APInt(1,0);
>
> return 0;
> }
>
> I get an error like:
> undefined reference to
2014 Jun 16
3
[LLVMdev] include's are not being located
On 6/16/14, 1:14 PM, Dan Liew wrote:
> Hi Joseph,
>
>> In other words what does " put '--std=c++11' in the CXXFLAGS” mean? Do you
>> have an example of what it would look like? or what should I read in order
>> to learn this? I’m happy to read up but I don’t know where to start reading
>> (besides the getting started page on llvm) :)
>
>
2014 Jun 13
6
[LLVMdev] include's are not being located
On Jun 12, 2014, at 4:37 PM, Jonathan Roelofs <jonathan at codesourcery.com> wrote:
>
>
> On 6/12/14, 3:07 PM, Joseph wrote:
>> Hi Dan,
>>
>>
>> So now that the includes are being found building the tutorial results in 74 warnings and 20 errors. Heres a couple examples:
>>
>> In file included from
2010 Sep 07
2
[LLVMdev] llvm-config error
Hello,
Takumi, you are absolutely right! It was a problem with Perl. Many thanks!
That problem solved, tried to compile again the kaleidoscope example but
unfortunatelly now I get the link errors found bellow:
$g++ -g –O3 toy.cpp `llvm-config –cppflags –ldflags –libs core`-o toy
c:/llvm-2.7/Release/lib/libLLVMSystem.a(Signals.o):Signals.cpp:(.text+0x4d4):
undefined reference to
2010 Sep 07
2
[LLVMdev] llvm-config error
Hi
I’m having a few problems building the kaleidoscope example (chapter 3)
under MinGW. To build the example I use as recommended
g++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy
but get the following error
sh: llvm-config: command not found
Indeed in my “\llvm-2.7\tools\llvm-config\” build directory there is no
“Release” subdirectory as I would expect (only
2014 Jun 11
2
[LLVMdev] include's are not being located
I’m new to llvm so I’m hoping someone can shed some light on this. I am
trying to use the Kaleidoscope tutorial and cannot get past the 3rd part.
All the llvm includes are not in their expected places. Eg…
“llvm/IR/Verifier.h” is actually in “llvm/include/llvm/IR”. I am running
mac osx 10.9.
Here’s what I’ve tried:
1. checkout the svn of llvm, clang & compiler rt
2. created a “build”
2010 Sep 07
0
[LLVMdev] llvm-config error
Good afternoon, António.
2010/9/7 António Saragga Seabra <antseabra at gmail.com>:
> $g++ -g –O3 toy.cpp `llvm-config –cppflags –ldflags –libs core`-o toy
>
> c:/llvm-2.7/Release/lib/libLLVMSystem.a(Signals.o):Signals.cpp:(.text+0x4d4):
> undefined reference to `_imp__SymSetOptions at 4'
I guess it might be a known issue;
http://llvm.org/bugs/show_bug.cgi?id=3347
Would you
2014 Jun 11
2
[LLVMdev] include's are not being located
Hi Dan,
Thank you for you response. As you suspect, I am struggling with the building of LLVM/Clang.
I thought building LLVM/Clang was required in order to build the tutorial and eventually modify for testing/learning. From what you are saying, it sounds like I am mistaken?
In reference to what you mentioned about installing/building and —prefix and my misuse of my build directory:
I am
2012 Nov 08
2
[LLVMdev] llvm-config --libs failed
Hi!
I'm trying to use the LLVMProject toolchain (according to this page:
http://llvm.org/docs/Projects.html).
I created a project "test" with kaleidoscope example source code from:
http://llvm.org/docs/tutorial/LangImpl3.html
It compiles successfully with: clang++ -g -O3 toy.cpp `llvm-config
--cppflags --ldflags --libs core` -o toy
according to the project documentation, my Makefile
2009 Jan 20
0
[LLVMdev] cygwin build patch
On Jan 20, 2009, at 1:22 AM, Jay Foad wrote:
>>> I realise that the DataTypes.h.in part might be controversial. Also,
>>> there's probably a better place to put it, but I'm not sure where.
>>
>> I didn't apply this part. What problems does it cause to not have
>> this? Can we fix uses of max and min?
>
> I could try to fix this by changing
2010 Sep 07
0
[LLVMdev] llvm-config error
Hello, António.
2010/9/7 António Saragga Seabra <antseabra at gmail.com>:
> I’m having a few problems building the kaleidoscope example (chapter 3)
> under MinGW. To build the example I use as recommended
> g++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy
> sh: llvm-config: command not found
You need MSYS's perl to use llvm-config on mingw.
Does
2012 Nov 08
0
[LLVMdev] llvm-config --libs failed
Wojciech Daniło <wojtek.danilo.ml at gmail.com> writes:
> Hi!
> I'm trying to use the LLVMProject toolchain (according to this page:
> http://llvm.org/docs/Projects.html).
> I created a project "test" with kaleidoscope example source code from:
> http://llvm.org/docs/tutorial/LangImpl3.html
> It compiles successfully with: clang++ -g -O3 toy.cpp `llvm-config
2012 Nov 08
2
[LLVMdev] llvm-config --libs failed
Thank you, now it is more clear whats going on. There is a line:
/bin/sh: /home/wdanilo/dev/llvm/src/projects/Debug+Asserts/bin/llvm-config:
No such file or directory
but why it is searching for it in that directory? (all makefile configs,
are default configs)
Below, there is full output of make:
>> make VERBOSE=1
for dir in lib tools; do \
if ([ ! -f $dir/Makefile ] || \
command
2009 Jan 20
4
[LLVMdev] cygwin build patch
>> I realise that the DataTypes.h.in part might be controversial. Also,
>> there's probably a better place to put it, but I'm not sure where.
>
> I didn't apply this part. What problems does it cause to not have
> this? Can we fix uses of max and min?
I get these errors in lib:
.../lib/Analysis/ValueTracking.cpp:162: error: no matching function
for call to
2010 Jun 04
2
[LLVMdev] undefined reference when using llvm-config
I'm trying to start a project based on llvm, but am running into some
difficulties. I started with the 'LLVM Project Guide', but got hung
up in the complexities of configure.ac. I'm now using llvm-config to
provide the linker directives, but this results in undefined
references:
$ llvm-g++ `$HOME/local/bin/llvm-config --cppflags --ldflags --libs
bitwriter` ModuleMaker.cpp
2010 Jun 05
1
[LLVMdev] undefined reference when using llvm-config
On Sat, Jun 5, 2010 at 3:18 AM, Duncan Sands <baldrick at free.fr> wrote:
> Hi Tom,
>
> I'm pretty sure that the LLVMContext constructor is defined in libLLVMCore.a
> What is the output of `llvm-config --libs bitwriter`? Does it include
> -lLLVMCore?
Hi Duncan,
e0082888 at e0082888-laptop:~$ local/bin/llvm-config --libs bitwriter
-lLLVMBitWriter -lLLVMCore -lLLVMSupport