|
From: Michael G. <mg...@ti...> - 2008-01-15 09:31:19
|
[please always CC the list, otherwise others won't benefit from this in the future -- thank you] > i am sorry for i don't clearly describe my problem. >=20 > i use windows+eclipse+cdt+mingw and i have to access oracle9i DB.so i hav= e to link oracle's lib.=20 > and i have tried the method in the URL: > http://www.ddj.com/database/184416611;jsessionid=3DTE1LJCITJNHPUQSNDLPSKH= SCJUNN2JVN?pgno=3D1 >=20 > i get a library orasql9i.a , and link error: >=20 > common/DBHandlerImpl.o:DBHandlerImpl.cpp:(.text+0x4966): undefined refere= nce to `sqlorat(void**, unsigned int*, void*)' > common/DBHandlerImpl.o:DBHandlerImpl.cpp:(.text+0x49ef): undefined refere= nce to `sqlcxt(void**, unsigned int*, sqlexd*, sqlcxp const*)' > collect2: ld returned 1 exit status >=20 > i want to know is there any mingw user have method to solve this prolem,t= hanks!~ Ah, ok. The article in DDJ does describe a method to create an importlib. In fact the whole stuff looks rather familiar if one knows the MinGWiki page dealing with this stuff :-) E.g. http://www.mingw.org/MinGWiki/index.php/CreateImportLibraries Another nice resource is http://wyw.dcweb.cn/stdcall.htm Anyway it looks as if your importlib is not exactly what you need. The link above should give you more info on how to proceed. If that does not help you you might wish to provide "Wl,--verbose" to the linker to get more details. We'd also need the exact link command. HTH, best, Michael =2D-=20 Michael Gerdau email: mg...@ti... GPG-keys available on request or at public keyserver |