|
#pragma comment(lib, "odbc32.lib")
을 추가 하면 됩니다.
임세환 님이 쓰신 글 :
: //---------------------------------------------------------------------------
: #include <windows.h>
: #include <sql.h>
: #include <sqlext.h>
: #include <sqltypes.h>
: #include <vcl.h>
: #pragma hdrstop
:
: #include "Unit1.h"
: //---------------------------------------------------------------------------
: #pragma package(smart_init)
: #pragma resource "*.dfm"
: TForm1 *Form1;
: //---------------------------------------------------------------------------
: __fastcall TForm1::TForm1(TComponent* Owner)
: : TForm(Owner)
: {
: }
: //---------------------------------------------------------------------------
:
: void __fastcall TForm1::FormShow(TObject *Sender)
: {
: SQLHENV henv;
: SQLHDBC hdbc;
: SQLHSTMT hstmt;
: SQLRETURN retcode;
:
: if (SQLAllocEnv(&henv) == SQL_ERROR)
: {
: ShowMessage("Unable to allocate environment handle\n");
: return;
: }
: }
:
: 이런 코딩을 합니다. 이때 SQLAllocEnv가 Linker error가 발생합니다.
: CLI 를 이용한 코딩을 위해서는 어떠한 library 또는 dll를 포함해야 하는지요??
: 도움 부탁드립니다. VC에서는 별다른 옵션없이 돌아가는데 C++빌더는 자꾸 linker -error를
: 뱉습니다. 도움부탁드립니다.
:
|