Subj : Re: Unresolved external '_mysql_init' is not in my source To : borland.public.cpp.borlandcpp From : Robert Eberhardt Date : Mon Aug 30 2004 03:40 pm Ed Mulroy [TeamB] wrote: > With the information given the most likely cause was the lack of an > import library. > > Locate your source file that contains the call to the function > mysql_init > For the purposes of this example I'll use source.cpp as its name > > Run these two commands and compare the exact text of the symbols > containing the characters mysql_init > > tdump -m source.obj | grep -i "mysql_init" > tdump -m -ee mysqlplus.dll | grep -i "mysql_init" > > Pay specific attention to if they both have leading underscores, to > case and to any other added characters. If the DLL is missing the > leading underscore then it could be that it was built with __stdlib > calling convention. If the source file symbol has added characters, > especially a trailing '$' followed by added characters, then it was > built as C++ and has a mangled name, was not built as extern "C". I had found this: MYSQL * STDCALL mysql_init(MYSQL *mysql); > > You posted here, in the newsgroup for the old Borland C++ compiler, > saying that you were using version 5.02, a version number unique to > Borland C++. > > However the project options you show are unique to C++ Builder so you > are not using Borland C++ and not using version 5.02. C++ Builder is sorry, the correct information is: Professional Version 5(Build 12.34) Update Pack 1 > covered in newsgroups with the word 'cppbuilder' in their name. In > the future please post C++ Builder questions in a C++ Builder > newsgroup and mention the correct version of the compiler being used. apology if I am unsuitable here bye Robert > > . Ed > > >>Robert Eberhardt wrote in message >>news:cguc8u$9jk$03$1@news.t-online.com... >> >>here my project options: >> >> >>from what the compiler forms the external reference, in my source or >>headers is these don't contain? >> >>> >>>>Robert Eberhardt wrote >>>>I am using c++Builder 5.02 under Win2K. ... > > > .