2005.05.31 20:01 "[Tiff] tiffopen problems continue...", by Antoine

2005.05.31 21:50 "Re: [Tiff] Re: tiffopen problems continue...", by Kevin Grover

The DLLs have to be compiled with the correct stack calls in order for them to be called from Windows. I'm not sure how to do it with MS compilers, but with gcc, you need to include this option during compiles:


Then, you after creating a .a library file:

# Makefile snippet
        ar cr libgct.a $(OBJS)

You can create a DLL (that's callable from VB/Delphi/etc), using dllwrap

# Makefile snippet
gct.dll libgctdll.a: $(OBJS)
        dllwrap --export-all --output-lib=libgctdll.a
--dllname=gct.dll --driver-name=g77 $(OBJS)
        strip gct.dll

NOTE: The '--driver-name=g77' is because I was using the fortran compiler. You would just leave this off for C/C++ programs.

NOTE: The above came from some FORTRAN I compiled for a co-worker, however, while researching things, I tried a test C/C++ files and the -mrtd swtich did the trick there also.

If you're using a different compiler, there's probably an option to it to use the Pascal Stack syntax (can't remember what the really called it) that -mrtd does for GCC

Hope this helps.

- Kevin

- Kevin Grover,kogrover@yahoo.com, kogrover@gmail.com
Henderson, NV