Coff2Omf 사용하세요.
아래는 빌더 헬프 가져온 겁니다.
-----------------------------------------------------------------------------------------
Coff2Omf is a command line tool that converts a COFF import library file (InputFile) to a corresponding OMF import library file (OutputFile). Coff2Omf.exe is located in the C++Builder BIN directory. The syntax is:
Coff2Omf [options] InputFile OutputFile
Coff2Omf converts the publicly exported symbols in the COFF import library to a corresponding set of symbols in the OMF import library. Coff2Omf enables C++Builder users to link to Microsoft and other third-party DLLs that use the COFF format. Coff2Omf does not convert .OBJ files.
Run the Coff2Omf tool on a COFF import library created for a specific DLL, and use the resulting import library to link OMF format EXEs and DLLs to the COFF DLL. The switches for Coff2Omf are:
-q - Quiet mode (converts without writing tool and copyright information to standard output)
-v - Dump of selected symbols (dumps the symbols that have been converted to standard output which can be redirected to an output file)
-d - Delete output file if empty (deletes the output file there is an error and the conversion results in an empty file)
-h, -? Display help
-r - Remove (delete) output file if empty
-lib:xx Specify options for OMF import library generation:
xx can be:
? ms - Allow entries that have MS C++ name mangling (default: no)
? st - Normalize names instead of aliasing MS stdcall mangling
? ca - Don't perform MS cdecl aliasing (default is to alias)
choi 님이 쓰신 글 :
: 안녕하세요.
:
: 외부 하드웨어 제어를 하는데 제공되는 라이브러리가
: Visual C++을 위한 *.H *.Lib *.DLL 이 있는데 이 라이브러리를 Builder에서
: 사용하고 싶은데 잘 안되네요.
:
: 1. 제 코드에 해당 "*.H"를 include 하였고,
: 2. Project에 Add로 "*.LIB"를 A추가 하였고
: 3. Implib.exe 를 사용하여 LIB,DLL을 Import하였으나 (도스창에서 -c -a Option을 사용함)
:
: => Link시에 "[Link Error] Unresolved External 함수명 referenced from .. OBJ " 이란 에러가 나옴니다.
:
: 제 생각에는 Visual C++과 Builder의 cdcel이 서로 다르다는 어설픈 정보는 보았는데
: .. 뒤쪽의 몇몇 메세지들을 보았지만 무슨 내용인지 이해를 할수가 없고...
:
: 그리고 VC쪽의 코드는 건들수가 없습니다.
:
: 혹시 Visual C++용 LIB나 DLL을 Builder용으로 바꾸어주는 유틸리티나 방법을 알고 계신분
: 제발 도움좀 부탁 드립니다.
:
:
: 고수님들께....
:
:
|