[vtkusers] VTK with PGI compilers on Linux (templates)

John Washbourne jwashbourne at corelab.com
Wed Feb 13 14:30:40 EST 2002


I have compiled VTK on linux with a non-gnu compiler (portland ground) and run into undefined 
templated functions when trying to link executables against the libraries. The problem appears to be 
that the pgi compiler requires a separate step to instantiate templates for libraries. I have also 
compiled VTK with g++ but cannot get g++ and the pgi compilers to play nice.

I have a question for the vtk make/cmake gurus our there. Is there any facility for doing a prelink 
step for libraries? For the pgi compiler and templates you need to compile the individual source 
files with a certain flag and then perform a prelink step that instantiates the templates prior to 
archiving (they get instantiated in a subdirectory). Surprisingly I cannot combine these steps into 
one command.

Unfortunately there is no option to use the compiler directly to create the libraries and 
instantiate templates as is available with solaris spro CC.

Am I correct in thinking that the simplest thing to do is a command line hack by finding the library 
creation step and running the prelink manually? If anyone on the list has experience in this area I 
would greatly appreciate your assistance.

Thanks in advance.

John Washbourne




More information about the vtkusers mailing list