From: Keith M. <kei...@us...> - 2013-02-05 22:16:00
|
On 05/02/13 21:58, wo...@wp... wrote: >> 4) You should always specify object files *before* libraries, >> (which is correct here), and when one library depends on any symbol >> in another, then the dependant library *must* precede the library >> which provides the required symbol. Thus, you need to place -lA >> *before* the two odbc import libs: >> >> g++ -shared -L./MyLibs ./MyObj/*.o -o ./Result/LibB.dll -lA >> -lodbc32 -lodbccp32 > > this was minor issue preventing me from make it working. This is *not* a minor issue. > I was not aware of thaat order, You *should* have been; very much aware. This is a fundamental school boy error; it has been raised a zillion times before, on this very list. It is the subject of a FAQ, on our wiki at mingw.org; you have no excuse for not being aware of it. -- Regards, Keith. |