20.2 Borland C++
You can compile the MySQL Windows source with Borland C++ 5.02. (The Windows source includes only projects for Microsoft VC++, for Borland C++ you have to do the project files yourself).
One known problem with Borland C++ is that it uses a different structure alignment than VC++. This means that you will run into problems if you try to use the default libmysql.dll libraries (that was compiled with VC++) with Borland C++. You can do one of the following to avoid this problem.
You can use the static MySQL libraries for Borland C++ that you can find on http://www.mysql.com/downloads/os-win32.html.
Only call mysql_init() with NULL as an argument, not a pre-allocated MYSQL struct.
20.2 Borland C++
MySQL Windows소스를 Borland C++ 5.02로 컴파일 하실 수 있습니다. (윈도우버전 소스는 단지 MS VC++프로젝트만이 들어있습니다. BC++을 위해서는 여러분 자신이 수정을 해야합니다.)
BC++의 알려진 문제점의 하나가 VC++ 다른 정렬구조를 사용하고 있다는 것입니다. 즉, 기본으로 제공된 libmysql.dll 라이브러리(VC++로 컴파일 되어 있음)를 BC++에서 쓰려고 하면 문제가 생긴다는 것입니다.
BC++용 정적(static) MySQL 라이브러리를 다음의 주소에서 찾아 사용하실 수 있습니다.
http://www.mysql.com/downloads/os-win32.html
MYSQL구조체를 미리 할당하지 마시고, mysql_init()은 인자를 NULL로 해서 부르십시오.
|