[vtkusers] vtk42 using with Borland 5 builder

David Cole david.cole at kitware.com
Mon Apr 11 09:27:01 EDT 2005


Mario's correct. The error message you receive about not being able to 
find an ordinal in VTKCOMMON.DLL means that you are linked against the 
shared lib/DLL build of VTK. You have to rebuild VTK with the CMake 
setting BUILD_SHARED_LIBS set to OFF. Then you have to rebuild your 
project with the same setting.

You can use the dependency walker tool (depends.exe) to view what DLL's 
and what exports your EXE depends on. You can download it from 
http://www.dependencywalker.com/

Hope this helps,
David


Mario Medved wrote:

>Hi,
>
>Your demo program clearly tries to load the DLLs at the beginning of the
>execution and something goes wrong. I would recompile the VTK again using
>the "STATIC LIB" option which will create static Borland lib files and you
>will not need any DLLs, since you will include the libs directly in your
>project. 
>
>Bye,
>Mario
>
>
>-----Original Message-----
>From: Wienand Drenth [mailto:w.drenth at chello.nl] 
>Sent: 9. april 2005 9:35
>To: Mario Medved; vtkusers at vtk.org
>Subject: Re: [vtkusers] vtk42 using with Borland 5 builder
>
>Hi Mario,
>
>As far as I know, I don't use any DLL's. But perhaps they are linked 
>unnoticed? The error I get is a pop-up window, even before the form 
>constructor is invoked. It says some like: cannot find ordinal 55?? in 
>VTKCOMMON.DLL. Perhaps this does ring a bell?
>
>I have tried to put some breakpoints, but the program terminates even 
>before it enters some of my code. The sample project is just the 
>standard Borland think you get when starting a new project. In my case I 
>just made a form with a button, and when clicking that button that 
>example should execute. I tried Dean's suggestion, and placed that dll 
>in the .exe directory, but with no result. :(
>
>Cheers,
>Wienand
>
>
>
>Mario Medved wrote:
>
>  
>
>>Hi,
>>
>> 
>>
>>    
>>
>>>Thanks for the reply. I did it the way you described and somehow I 
>>>managed to get the example code (with the Sphere) compiled!! 
>>>   
>>>
>>>      
>>>
>>That is a very good start:)))
>>
>>
>> 
>>
>>    
>>
>>>quite happy about that. However, next I wanted to run the program but 
>>>that was less sucessfull. I recieved some vague dll error.
>>>   
>>>
>>>      
>>>
>>To the best of my knowledge, you do not need any DLLs, because the LIBS are
>>static, so all the code is contained in there. When you deliver the EXE,
>>    
>>
>you
>  
>
>>do not need to deliver VTK dlls.
>>
>> 
>>
>>    
>>
>>>Did I do something wrong with Cmake? For that I just used the default 
>>>settings, and when Cmake finished I just typed 'make' and things started 
>>>compiling. What could that dll error be related to?
>>>   
>>>
>>>      
>>>
>>Can you give me more details about the error. You should pinpoint the line
>>in your code which causes the error (use breakpoints)?
>>
>> 
>>
>>    
>>
>>>Thanks for your time!
>>>   
>>>
>>>      
>>>
>>No problem!
>>
>>Bye,
>>Mario
>>
>>
>> 
>>
>>    
>>
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>  
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050411/62c27104/attachment.htm>


More information about the vtkusers mailing list