ndk compiler with error(a lot of undefined reference to ... errors)

  • 843
  • 0

摘要:ndk compiler with error(a lot of undefined reference to ... errors)

um.........fist I have to complain NVIDIA android for VS2010...

because as this topic 
https://devtalk.nvidia.com/default/topic/533056/nsight-tegra-visual-studio-edition/best-way-to-set-up-a-native-static-lib-/

 

it doesn't provide any project solution for static lib project, as they mention:

 

Sorry we don't have enough documentation for this. Android.mk and Application.mk are used by NDK-build, that's not auto generated in the Visual Studio tool. We provided those files to make the project compatible with ndk-build. Changes in VS will not be reflected in .mk files. We don't have plan to support maintain .mk files so far.

To make a static lib project, you can start from any template and remove the bits you don't need. Just to change the "Configuration Type" in project setting to "Static Lib (.a) "

 

 

so I spent a lot time to figure why link is not correct...but all results not work for me because NV does't generate mk file.....-_- fucking sad...

 

 

AND!!!!!

as NVidia's forum mention  if u want to link the lib u created...u have add -l    before xxxxx.a

this one also kill my time...