May 27, 2010

undefined reference to `_imp___ [...]

was playing around with the Locations features when I came to notice this problem. I was building from a bare-bone bada app project created by the wizard. I have specified the headers and the namespaces, however each time I tried to build the bada project in the IDE I received many errors which looked like this one:

"undefined reference to `_imp___ZN3Osp9Locations8Services19IMapServiceListenerD2Ev'"

When you get something similar, do not give up! There is hope! :D

All you have to do is select the project, go to its properties (Project->Properties). In the tree-view on your left select C/C++ Build->Settings. Under the Tool Settings tab expand the bada C++ Linker node in the tree and select the Libraries node. Under the Libraries list click on Add and write FLocations (or any other bada library that seems to be missing when linking)

Loi nay duoc goi la Linker Error: ban phai xem trong Library cua Build da co thu vien minh can chua

1 comment: