CINT C++ Builder 3.0 porting

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Mon Nov 23 1998 - 13:18:25 MET


Dear users,

I need some help from Borland compiler users. 

I bought C++ Builder 3.0 (Borland C++ 5.3) and trying to provide makefile
package for it. Many people informed me that they ported cint on BC++. But
the makefile package has not been included in cint source package.

I could successfully build whole cint as a console application. All cint
sources are compiled into one cint.exe. 

But what I really want to do is to split it into libcint.dll and cint.exe.
libcint.dll includes all cint sources except main function. cint.exe only has
the main function.

What I want to do is as follows.

1) Build  libcint.dll
  The project contains most of the files in c:\cint\src directory and 
  c:\cint\main\G__setup.c.  I need to export 100 functions from this DLL.
  I have c:\cint\platform\visual\src\libcint.def. This file has EXPORT
  declaration. I want to avoid using __decl(dllexport) in source file.
  With this project libcint.dll and libcint.lib has to be created.
  (I used DLL wizard but couldn't figure out where those files are created.)

2) Build cint.exe
  The project contains c:\cint\main\cppmain.cxx and libcint.lib which is
  made in process 1).  libcint.lib should have all the export information.
  External reference in the cppmain.cxx should be resolved by this. 
  (Because, I couldn't go through the process 1, I used VC++ to make libcint.l
ib   and fed it into this process. Then Borland linker complains it has wrong 
ID.
   Should .lib file compatible between VC++ and BC++?)

3) Building makecint.exe for Borland.
  If I can do 1) and 2) , I'll be able to make makecint.exe for Borland
  compiler. 

My main questions are

1) How to make .DLL/.LIB files? I want to export functions using .DEF file.
  I added .DEF file in the project, but it doesn't seem like working.

2) How to include .LIB file in the project which imports function from DLL?
  I added .LIB file in the project. Maybe because .LIB file is not correct.
  I used IMPLIB.exe utility but it didn't help.

3) Is .LIB file compatible among different Windows compilers?

Thanks in advance
Masaharu Goto



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:40 MET