Displaying 9 results from an estimated 9 matches for "tut1".
Did you mean:
out1
2009 Sep 21
3
[LLVMdev] Error when building tutorial example
...re isn't really any other forums around. Anyway, the
issue I'm encountering is that, I was trying out the first tutorial
(http://llvm.org/docs/tutorial/JITTutorial1.html). I attempted to do
this in another folder that was copied from llvm/projects/sample. I
created a new folder called "tut1" in sample/tools/ folder, and the
following Makefile.
LEVEL=../..
TOOLNAME=tut1
LINK_COMPONENTS += --cxxflags
LINK_COMPONENTS += --ldflags
LINK_COMPONENTS += --libs
LINK_COMPONENTS += core
LINK_COMPONENTS += engine
include $(LEVEL)/Makefile.common
However, I'm getting the following error...
2009 May 12
1
[LLVMdev] Tutorial 1: casting cout
To get Tutorial 1 to compile, I had to cast cout as a raw_osstream, as in:
PM.add(createPrintModulePass(&llvm::cout));
---->
PM.add(createPrintModulePass((raw_ostream*)&llvm::cout));
I was getting the following error:
$ c++ -g tut1.cpp `llvm-config --cxxflags --ldflags --libs core` -o tut1
tut1.cpp: In function ‘int main(int, char**)’:
tut1.cpp:19: error: cannot convert ‘llvm::OStream*’ to
‘llvm::raw_ostream*’ for argument ‘1’ to ‘llvm::ModulePass*
llvm::createPrintModulePass(llvm::raw_ostream*, bool)’
Anyway, just wanted to...
2009 Jan 17
2
[LLVMdev] Build problems on MinGW
...ore recent versions in some cases and also found I
needed Perl (thank you Anton and Ted):
http://blogs.tedneward.com/2008/02/24/Building+LLVM+On+Windows+Using+MinGW32.aspx
Now I can compile and install llvm-2.4 but the first step in the
tutorial fails for me with another missing symbol:
$ g++ -g tut1.cpp `llvm-config --cxxflags --ldflags --libs core` -o tut1
/mingw/lib/libLLVMSystem.a(Process.o):Process.cpp:(.text+0x8d):
undefined reference to `GetProcessMemoryInfo at 12'
collect2: ld returned 1 exit status
I'm using GNU ld (GNU Binutils) 2.18.50.20080109.
Thanks for any further help...
2009 Jan 17
0
[LLVMdev] Build problems on MinGW
Hello, Duncan
> $ g++ -g tut1.cpp `llvm-config --cxxflags --ldflags --libs core` -o tut1
> /mingw/lib/libLLVMSystem.a(Process.o):Process.cpp:(.text+0x8d):
> undefined reference to `GetProcessMemoryInfo at 12'
> collect2: ld returned 1 exit status
I believe you will need additional libraries like imagehlp and psapi....
2017 Feb 15
2
Problem using Boost Filesystem with Clang
...I have this simple program:
------------------------------------------------------------------------
#include <iostream>
#include <boost/filesystem.hpp>
using namespace boost::filesystem;
int main(int argc, char* argv[])
{
if (argc < 2)
{
std::cout << "Usage: tut1 path\n";
return 1;
}
std::cout << argv[1] << " " << file_size(argv[1]) << '\n';
return 0;
}
------------------------------------------------------------------------
If I compile with g++ using "g++ -lboost_system -lboost_filesystem...
2009 Jan 13
0
[LLVMdev] Build problems on MinGW
Hello, Duncan
> * LD (which I took to be representative of Binutils version) 2.17.50
> 20060824
> None of these are marked "bad" in your compatibility matrix, but not
> many of them are marked "good" either.
>
> During build I get lots of missing symbol errors from LD. Near the end
> it goes through a monster link step that spews many screenfuls of link
2009 Jan 17
2
[LLVMdev] Build problems on MinGW
Hi Anton
>> $ g++ -g tut1.cpp `llvm-config --cxxflags --ldflags --libs core` -o tut1
>> /mingw/lib/libLLVMSystem.a(Process.o):Process.cpp:(.text+0x8d):
>> undefined reference to `GetProcessMemoryInfo at 12'
>> collect2: ld returned 1 exit status
> I believe you will need additional libraries like im...
2009 Jan 13
2
[LLVMdev] Build problems on MinGW
Hello everyone,
I'm struggling to get a working LLVM installation on MinGW on Windows
Vista. I have the following packages:
* LLVM 2.4
* Gnu make 3.81
* GCC 3.4.5 (mingw-vista special r3)
* Perl 5.6.1
* Texinfo 4.11
* LD (which I took to be representative of Binutils version) 2.17.50 20060824
None of these are marked "bad" in your compatibility matrix, but not
many of them are
2009 Sep 21
0
[LLVMdev] Error when building tutorial example
On Sun, Sep 20, 2009 at 11:05 PM, Alexia Benington
<alexbenington at gmail.com> wrote:
> Hi all,
>
> I can get it to compile with the following command. But I want to make
> sure I understand how the Makefiles integrate together.
> g++ tut1.cpp `llvm-config --cxxflags --ldflags --libs core engine`
>
> Really appreciate your help. Thank you.
I've been sitting on a patch that adds all the kaleidoscope tests to
the llvm tree, instead of just chapter 7. I'll look into pushing it
out tomorrow.