From: Sandeep Gupta (gupta.sandeep_at_gmail.com)
Date: Wed Sep 19 2012 - 12:37:04 CDT

Hi John, Caio,

 The problem was the same with the g++ as well. I did modify the code.
I tried using wrapping the functions within extern C {} clause. But that
didn't help.
This is the error with unmodified vmd.C with g++

g++ -m32 -fno-for-scope -Wno-deprecated -Wall -O3 -DARCH_LINUX
-DVMDQUICKSURF -DVMDWITHCARBS -DVMDPOLYHEDRA -DVMDSURF -DVMDMSMS
-DVMDPBCSMOOTH -DVMDSTATICPLUGINS -I../plugins/include
-I../plugins/LINUX/molfile -I. -c vmd.C -o ../LINUX/vmd.o

Compiling vmd.C --> vmd.o ...
vmd.C: In function ‘int VMDinitialize(int*, char***)’:
vmd.C:283:52: error: ‘vmd_initialize_tcl’ was not declared in this scope

vmd.C: In function ‘void VMDshutdown()’:
vmd.C:443:20: error: ‘vmd_finalize_tcl’ was not declared in this scope

@Caio: Could the errors have to do something with tcl installation?.

Thanks.
Sandeep

On Wed, Sep 19, 2012 at 10:30 AM, Caio Silva Souza <caiobiounb_at_gmail.com>wrote:

> Hi,
> I don't know if it is helpfull, but I have already compiled VMD with GCC
> 4.6 on Ubuntu 12.04 and I didn't get this error.
>
> Cheers,
> Caio S. Souza
>
>
>
>
>
> 2012/9/19 John Stone <johns_at_ks.uiuc.edu>
>
>> Hi,
>> There is no such source file named "VMD.C". I'm afraid you'll
>> have to be more specific about the exact error message you got.
>> Please send me the exact compiler error output you get, and I should
>> be able to give you concrete suggestions.
>>
>> In general, we have been compiling VMD regularly with GCC versions
>> up to 4.2. I don't know if anyone has tried a GCC 4.6 build recently,
>> but our local VMD builds are with somewhat older Linux distributions, so
>> we only do builds on bleeding-edge GCC versions someone infrequently for
>> special VMD installations at other sites.
>>
>> Cheers,
>> John Stone
>> vmd_at_ks.uiuc.edu
>>
>> On Wed, Sep 19, 2012 at 04:45:55AM -0700, Sandeep Gupta wrote:
>> > Hi,
>> >
>> > I downloaded VMD 1.9.1 src and tried to compile on my ubuntu 12.04
>> > box using g++-4.6. After crossing a few hurdles (with respect to
>> > plugins) the make command fails at VMD.C. I get an error saying
>> > "vmd_initialize_tcl" not defined.
>> >
>> > I understand that this error is probably a compiler issue. I wanted
>> > to know if there is any workaround or which compiler has been test
>> > with vmd.
>> > Thanks for looking into this.
>> >
>> > Regards,
>> > Sandeep
>>
>> --
>> NIH Resource for Macromolecular Modeling and Bioinformatics
>> Beckman Institute for Advanced Science and Technology
>> University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
>> http://www.ks.uiuc.edu/~johns/ Phone: 217-244-3349
>> http://www.ks.uiuc.edu/Research/vmd/ Fax: 217-244-6078
>>
>
>