I can answer my own question .
The reason is odbc driver on windows is dll.So I need to export the api either by declspec(dllexport) or by dll_name.def file . I don't add the the API name to the def file,so driver manager panics.(I just developed the project halfway ,and not aware of the def file)
It is dumb ,indeed .But maybe it can help some novice like me ,who are not familiar with dll mechanism
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…