Displaying 3 results from an estimated 3 matches for "_zn12datatransferd1ev".
2012 Mar 01
1
[LLVMdev] Linking problem in a pass
HI Duncan,
Your understanding of the problem is correct. However, the XYZ class is not
inside an anonymous name space. Also, all the XYZ methods are defined in
the .cpp file. Looking at the error message:
opt: symbol lookup error: path/to/pass.so: undefined symbol:
_ZN12DataTransferD1Ev
Where DataTransfer is the class name. Maybe I am missing certain type of
constructors?
Thanks,
Welson
On Thu, Mar 1, 2012 at 10:00 AM, Duncan Sands <baldrick at free.fr> wrote:
> Hi Welson, are you saying that the .o file containing the class is being
> linked
> into the .so f...
2012 Mar 01
0
[LLVMdev] Linking problem in a pass
Hi Welson, are you saying that the .o file containing the class is being linked
into the .so file, but nonetheless you get "undefined symbol XYZ" errors where
XYZ is that class? Maybe you defined the class inside an anonymous name space?
Alternatively, if XYZ refers to a method of the class, maybe you forgot to
define that method.
Ciao, Duncan.
On 01/03/12 17:36, Welson Sun wrote:
2012 Mar 01
2
[LLVMdev] Linking problem in a pass
Originally, the problem is the lack of .cpp file. Then I noticed the
compilation log is not showing the .o file being generated for the non-pass
classes.
Then I added the .cpp files for each .h file, then the .o files are being
generated, shown in the Debug directory. Actually, if I add "VERBOSE = 1"
in the Makefile, it shows the linking command is actually linking all the
.o files into