Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm new using Linux (Ubuntu 12.04 LTS, 64-bit). I am trying to learn how to create binary files for a program called Tecplot.

I've been trying to compile the example file simtest.f90, using this:

$ gfortran -fcray-pointer -lstdc++ simtest.f90 tecio64.a

When I do this, I get a huge list of errors like this:

tecio.a(tecxxx.o).gnu.linkonce.d.DW.ref.__gxx_pe rsonality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to '__gxx_personality_v0' tecio.a(TranslatedString.o).gnu.linkonce.d._ZTIN 7tecplot7strutil16TranslatedStringE[typeinfo for tecplot::strutil::TranslatedString]+0x0): undefined reference to `vtable for _cxxabiv1::_class_type_info'

I've been reading several forums, and it looks like this is the kind of error you get when you don't link the libstdc++ library (in fact, if I remove the link -lstdc++ I get the exact same error).

If anyone can help me, I would appreciate it.

share|improve this question

1 Answer 1

To get the lstdc++ flag to work, you'll need to install a C++ compiler. Try this:

sudo apt-get install g++
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.