search for: update_sec_read

Displaying 2 results from an estimated 2 matches for "update_sec_read".

2011 Jan 17
2
[LLVMdev] File reading in LLVM 2.8
...ing to read a plain text file in a llvm pass. But getting an error - llvm[0]: Linking Release Loadable Module LLVMHello.so /usr/bin/ld: /home/abhirup/llvm/llvm2.8_Install/llvm-2.8/lib/Transforms/Hello/Release/Hello.o: relocation R_X86_64_PC32 against undefined symbol `(anonymous namespace)::Hello::update_sec_read(char const*)' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status I have used simple ifstream code - void update_sec_read (const char* Filename) { std::ifstream In(Filename); if (!In.good()) {...
2011 Jan 18
0
[LLVMdev] File reading in LLVM 2.8
...nt of Computer Science& Engg. > IIT, Bombay > email - abhirupju at gmail.com , abhirup at cse.iitb.ac.in > > > > On Mon, Jan 17, 2011 at 2:41 PM, Duncan Sands<baldrick at free.fr> wrote: >> Hi Abhirup, >> >> `(anonymous >>> namespace)::Hello::update_sec_read(char const*)' can not be used when >>> making a shared object; recompile with -fPIC >> >> did you compile it with -fPIC ? >> >> Ciao, Duncan. >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.ui...