[vtkusers] link errors with vtk40 with Borland C++ Builder

William A. Hoffman billlist at nycap.rr.com
Fri Jan 11 12:16:43 EST 2002


There seems to be a problem with running vtk and borland dll's.
I am able to link, but any of the programs that use libpng or libjpeg crash.
It seems to be when the C++ calls C, that it gets an exception and crashes.
(only the C libraries that we are compiling)  
So, until that is fixed, I would say use static libraries for borland.

BTW, if there are any borland experts out there, that might know what
is causing this, please feel free to contact me.  I guess we are creating
the dll for the c libraries incorrectly in some way.



-Bill


At 08:16 AM 1/11/2002 -0500, William A. Hoffman wrote:
>Which version of CMake and VTK are you building?
>
>The dashboard for borland was doing static libraries, so I have added
>one for shared libraries as well.   I just tried the most recent cmake cvs and vtk,
>and I do not get this problem.
>
>-Bill
>
>
>At 04:34 PM 1/11/2002 +0900, forzakim wrote:
>>Hi,
>>
>>When cashe values [BUILD_SHARED_LIBS] is turned into ON
>>with CMake, link errors is generated.
>>
>>
>>        D:\PROGRA~1\Borland\CBUILD~1\Bin\\bcc32 -tWD -tWM -v
>>@MAKE0000.@@@
>>Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000
>>Borland
>>Turbo Incremental Link 5.00 Copyright (c) 1997, 2000
>>Borland
>>Error: Unresolved external '_jpeg_std_error' referenced
>>from $B!J(BD:\VTK40BIN\IO\VTKJPEGREADER.OBJ$B!K(B
>>Error: Unresolved external '_jpeg_CreateDecompress'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKJPEGREADER.OBJ$B!K(B
>>Error: Unresolved external '_jpeg_stdio_src' referenced
>>from $B!J(BD:\VTK40BIN\IO\VTKJPEGREADER.OBJ$B!K(B
>>Error: Unresolved external '_jpeg_read_header' referenced
>>from $B!J(BD:\VTK40BIN\IO\VTKJPEGREADER.OBJ$B!K(B
>>Error: Unresolved external '_jpeg_start_decompress'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKJPEGREADER.OBJ$B!K(B
>>Error: Unresolved external '_jpeg_read_scanlines'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKJPEGREADER.OBJ$B!K(B
>>Error: Unresolved external '_jpeg_finish_decompress'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKJPEGREADER.OBJ$B!K(B
>>Error: Unresolved external '_jpeg_destroy_decompress'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKJPEGREADER.OBJ$B!K(B
>>Error: Unresolved external '_jpeg_calc_output_dimensions'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKJPEGREADER.OBJ$B!K(B
>>Error: Unresolved external '_jpeg_CreateCompress'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKJPEGWRITER.OBJ$B!K(B
>>Error: Unresolved external '_jpeg_stdio_dest' referenced
>>from $B!J(BD:\VTK40BIN\IO\VTKJPEGWRITER.OBJ$B!K(B
>>Error: Unresolved external '_jpeg_set_defaults' referenced
>>from $B!J(BD:\VTK40BIN\IO\VTKJPEGWRITER.OBJ$B!K(B
>>Error: Unresolved external '_jpeg_set_quality' referenced
>>from $B!J(BD:\VTK40BIN\IO\VTKJPEGWRITER.OBJ$B!K(B
>>Error: Unresolved external '_jpeg_simple_progression'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKJPEGWRITER.OBJ$B!K(B
>>Error: Unresolved external '_jpeg_start_compress'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKJPEGWRITER.OBJ$B!K(B
>>Error: Unresolved external '_jpeg_write_scanlines'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKJPEGWRITER.OBJ$B!K(B
>>Error: Unresolved external '_jpeg_finish_compress'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKJPEGWRITER.OBJ$B!K(B
>>Error: Unresolved external '_jpeg_destroy_compress'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKJPEGWRITER.OBJ$B!K(B
>>Error: Unresolved external '_png_sig_cmp' referenced from
>>$B!J(BD:\VTK40BIN\IO\VTKPNGREADER.OBJ$B!K(B
>>Error: Unresolved external '_png_create_read_struct'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKPNGREADER.OBJ$B!K(B
>>Error: Unresolved external '_png_create_info_struct'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKPNGREADER.OBJ$B!K(B
>>Error: Unresolved external '_png_init_io' referenced from
>>$B!J(BD:\VTK40BIN\IO\VTKPNGREADER.OBJ$B!K(B
>>Error: Unresolved external '_png_set_sig_bytes' referenced
>>from $B!J(BD:\VTK40BIN\IO\VTKPNGREADER.OBJ$B!K(B
>>Error: Unresolved external '_png_read_info' referenced
>>from $B!J(BD:\VTK40BIN\IO\VTKPNGREADER.OBJ$B!K(B
>>Error: Unresolved external '_png_get_IHDR' referenced from
>>$B!J(BD:\VTK40BIN\IO\VTKPNGREADER.OBJ$B!K(B
>>Error: Unresolved external '_png_set_palette_to_rgb'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKPNGREADER.OBJ$B!K(B
>>Error: Unresolved external '_png_set_gray_1_2_4_to_8'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKPNGREADER.OBJ$B!K(B
>>Error: Unresolved external '_png_get_valid' referenced
>>from $B!J(BD:\VTK40BIN\IO\VTKPNGREADER.OBJ$B!K(B
>>Error: Unresolved external '_png_set_tRNS_to_alpha'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKPNGREADER.OBJ$B!K(B
>>Error: Unresolved external '_png_set_swap' referenced from
>>$B!J(BD:\VTK40BIN\IO\VTKPNGREADER.OBJ$B!K(B
>>Error: Unresolved external '_png_read_update_info'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKPNGREADER.OBJ$B!K(B
>>Error: Unresolved external '_png_get_rowbytes' referenced
>>from $B!J(BD:\VTK40BIN\IO\VTKPNGREADER.OBJ$B!K(B
>>Error: Unresolved external '_png_read_image' referenced
>>from $B!J(BD:\VTK40BIN\IO\VTKPNGREADER.OBJ$B!K(B
>>Error: Unresolved external '_png_read_end' referenced from
>>$B!J(BD:\VTK40BIN\IO\VTKPNGREADER.OBJ$B!K(B
>>Error: Unresolved external '_png_destroy_read_struct'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKPNGREADER.OBJ$B!K(B
>>Error: Unresolved external '_png_get_channels' referenced
>>from $B!J(BD:\VTK40BIN\IO\VTKPNGREADER.OBJ$B!K(B
>>Error: Unresolved external '_png_create_write_struct'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKPNGWRITER.OBJ$B!K(B
>>Error: Unresolved external '_png_set_IHDR' referenced from
>>$B!J(BD:\VTK40BIN\IO\VTKPNGWRITER.OBJ$B!K(B
>>Error: Unresolved external '_png_write_info' referenced
>>from $B!J(BD:\VTK40BIN\IO\VTKPNGWRITER.OBJ$B!K(B
>>Error: Unresolved external '_png_write_image' referenced
>>from $B!J(BD:\VTK40BIN\IO\VTKPNGWRITER.OBJ$B!K(B
>>Error: Unresolved external '_png_write_end' referenced
>>from $B!J(BD:\VTK40BIN\IO\VTKPNGWRITER.OBJ$B!K(B
>>Error: Unresolved external '_png_destroy_write_struct'
>>referenced from $B!J(BD:\VTK40BIN\IO\VTKPNGWRITER.OBJ$B!K(B
>>
>>** error 1 ** deleting D:\vtk40bin\bin\vtkIO.dll
>>
>>** error 1 ** deleting build_IO
>>
>>** error 1 ** deleting default_target
>>
>>
>>Any help would be appreciated.
>>
>>Regards.
>>forzakim
>>
>>__________________________________________________
>>Do You Yahoo!?
>>Yahoo! BB is Broadband by Yahoo!
>>http://bb.yahoo.co.jp/
>>
>>_______________________________________________
>>This is the private VTK discussion list. 
>>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>>Follow this link to subscribe/unsubscribe:
>>http://public.kitware.com/mailman/listinfo/vtkusers 
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers 




More information about the vtkusers mailing list