Linking in VC++: I didn't want tcl but it came for the ride!

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
aneeman
Posts: 90
Joined: Thu Jan 12, 2006 1:13 pm
Contact:

Linking in VC++: I didn't want tcl but it came for the ride!

Post by aneeman »

Hi!

I'm actually doing a little developing in VC++. One thing I wanted to let you all know about. I can create a project (like quickMain) in the Win32/proj
directory. However, things get a little weird when I went to instantiate a type of NDMaterial.

What happens is that I get a link error that says material.lib cannot find
TclModelBuilder::getNDMaterial(int)

I fixed this by opening the material workspace, adding in all the Tcl command related source files, and rebuilding material.lib. Everything compiles good!

I go back to my workspace, that problem is gone, but a bunch of new linking errors appear, also related to various TclCommand type classes.

Anyhoo, I plan to rebuild these other libs also with their tcl command files in, but just wanted to let you know about this strange situation. Does anyone know a quicker way to resolve it?:roll:

thanks,

alisa
aneeman
Posts: 90
Joined: Thu Jan 12, 2006 1:13 pm
Contact:

Whups! my bad.

Post by aneeman »

It looks like what you have to do is remove the tcl command files rather than
add them. Once I removed the offending TclTemplate3Dep from the material lib all was good.

Sorry!

alisa
Post Reply