|
빌더에서 만든 간단한 DLL을 VC에서 코드에 넣으면 에러가 납니다. 에러는 다음과 같습니다.
c:\program files\borland\cbuilder5\include\vcl\system.hpp(10) : warning C4068: unknown pragma
c:\program files\borland\cbuilder5\include\vcl\system.hpp(11) : warning C4068: unknown pragma
c:\program files\borland\cbuilder5\include\vcl\system.hpp(12) : warning C4068: unknown pragma
c:\program files\borland\cbuilder5\include\vcl\sysmac.h(16) : fatal error C1189: #error : BCW 5.0 or greater required
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\wingears.sbr': No such file or directory
Error executing bscmake.exe.
주된 문제는 fatal error. 혹시나 싶어서 DLL을 만들때, Release version으로 바꾸어도 그런문제가 나오네요.
어찌된 일일까요 ????
중요한 문제여서... 어떤 의견이라도 답글 달아주시면 고맙겠습니다.
경고중에서 pragma관련된 내용은.. 대체로 다음과 같은 내용들이고요.. 이건 빌더의 lib/vcl에 있는 hpp파일에서 생기더군요...
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
borland community에 가니깐, 이런 이야기가 있는데 구체적으로 어떤 과정이 되는지 설명 부탁드립니다. 98년 글인데, 5.0버전에도 적용되는지도.. 부탁드립니다.
Using VC to import a Borland DLL - by Borland Developer Support Staff
Question and Answer Database
FAQ2031C.txt Using VC to import a Borland DLL
Category :Windows API
Platform :All
Product :C++Builder ALL
Question:
How do I make a VC-compatible import library from a
Borland DLL?
Answer:
Run dumpbin on the DLL to get a list of function names.
Manually create a .def file listing these functions as
imports. Then run lib /DEF:[your_def_file_name_].def.
7/2/98 10:32:32 AM
|