Best regards,
Ricardo
as Ernesto said, this segmentation error occurs because the latest
version of gcc that was tested by mex was 4.2. So, you have to
download and install gcc-4.2, gfortran-4.2 and g++-4.2, plus their
dependencies. After instaling, you have to open mexopts.sh (located in
algencan-2.3.7/sources/interfaces/matlab/) and substitute gcc by
gcc-4.2, gfortran by gfortran-4.2 and g++ by g++-4.2. In the file
Makefile (located in algencan-2.3.7/) you also have to substitute
gfortran by gfortran-4.2.
If you are using Ubuntu, the fastest way for downloading gcc-4.2 is to
add the following repositories to file /etc/apt/sources.list:
deb http://br.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
universe multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ hardy-updates main
restricted universe multiverse
and update the list of repositories:
sudo apt-get update
Then, install gcc-4.2.
Best regards,
Francisco Sobral.
> --
> You received this message because you are subscribed to the Google Groups "TANGO Project - ALGENCAN" group.
> To post to this group, send email to tango-...@googlegroups.com.
> To unsubscribe from this group, send email to tango-projec...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/tango-project?hl=en.
>
--
Francisco Sobral
This error usually occurs when some parts of the code were compiled
using different versions of gfortran. Have you changed to gfortran-4.2
in the file algencan-2.3.7/Makefile? If the answer is YES, then try
the following steps:
1) Enter in the directory algencan-2.3.7
2) type
make clean
3) type
make algencan-matlab 64BITS=true
if you have a 64 bits operational system or
make algencan-matlab
if you have a 32 bits operational system.
4) Follow the steps in the README in order to run your problem.
Best regards,
Francisco