From: John Stone (johns_at_ks.uiuc.edu)
Date: Wed Sep 19 2012 - 12:06:22 CDT

Hi,
  Okay, I think part of the problem here is that you're trying to compile
a C++ source file with "gcc" rather than "g++". This is the most likely cause
of your problem from what I see below. If it wasn't that, I would have
said that there's something wrong with the compiler since vmd_initialize_tcl()
is declared at the top of that source file, with file-scope linkage.
Did you modify the source code? I also noticed that the line numbers
the compiler is reporting do not match the source code in CVS, they are off
by two lines.

Cheers,
  John Stone
  vmd_at_ks.uiuc.edu

On Wed, Sep 19, 2012 at 09:45:46AM -0700, Sandeep Gupta wrote:
> Hi John,
>
> Thanks for looking into this. The file is vmd-1.9.1/src/vmd.C. The exact
> error is noted below. Do you
> recommend using gcc-4.2 compiler?.
>
> echo "Compiling " vmd.C " --> " vmd.o " ..."; \
> gcc -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:285:52: error: *vmd_initialize_tcl* was not declared in this scope
> vmd.C: In function *void VMDshutdown()*:
> vmd.C:445:20: error: *vmd_finalize_tcl* was not declared in this scope
> make: *** [vmd.o] Error 1
>
> Regards,
> Sandeep
>
> On Wed, Sep 19, 2012 at 9:08 AM, John Stone <johns_at_ks.uiuc.edu> wrote:
>
> 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

-- 
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