I can't be able to compile fcon.c.
After i've unzipped AUTO2000 and i've properly
configured (./configure) and compiled it (make) i try
to convert some data into a auto file using the command
us(), but the prompt return an error: the command fcon
is missing. I found that the in /src there is the
source file fcon.c, but it was not compiled during
installation because in the Makefile there aren't rules
for him!
So i've tried to compile it by my self, but this is the
result:
[root@localhost src]# gcc -DPTHREADS -O -I../include
-I../../include -Ilibf2c -L../lib/ -lauto_f2c fcon.c -o
../bin/fcon
/tmp/ccXaw1oq.o(.text+0x32f): In function `main':
: undefined reference to `stpnt'
/tmp/ccXaw1oq.o(.text+0xb3a): In function `eqdf':
: undefined reference to `pow_di'
/tmp/ccXaw1oq.o(.text+0xdec): In function `eqdf':
: undefined reference to `pow_dd'
/tmp/ccXaw1oq.o(.text+0xea0): In function `cntdif':
: undefined reference to `pow_ii'
collect2: ld returned 1 exit status
[root@localhost src]#
Someone can help me?
Tanks.
Logged In: NO
alright, you have to get a different version of fcon.c. This
is the one you want to use
http://www.mathlab.cornell.edu/~weck/other/fcon.c . I have
to warn you, auto is very picky about OS and compiler.
Logged In: NO
The missing routines are from the libraries
libf2c.a/libI77.a/libF77.a (the Fortran intrinsic functions
run-time library used by the Fortran to C converter f2c).
Change -llibf2c to -lf2c, as per the Unix linker conventions.
Logged In: YES
user_id=1287981
Well, first of all I've really appreciated that finally
someone had answered to my question!
Now the problem.
I've partially resolved the situation: I tink command us()
not to work because of a wrong path variable in the source
code. Indeed, I've managed to import my data in AUTO by
"debugging" the @fc command, which now is able to find all
the code which is necessary for the operation. For my
situation I've used the fcon.c in the patch directory of the
sourceforge page.
Regarding to the problem in compiling I've found that I
dind't use all the files: the *.c of the system has to be
compiled together with fcon.c!
Now on these basis I'm going to create a RPM or DEBIAN
package to obtain a correct and automatc installation on
linux boxs; indeed also PLAUT program needs some adjustment
to properly work!
Thanks to all.
Logged In: YES
user_id=176505
You cannot compile fcon.c on its own, it always needs to be
combined with a user model file (like the tutorial demo's ab.c)
fcon is used for converting raw user data into AUTO solution
data; see for instance the demos cir, lor, mtn, pen, rev,
and she for examples that use it.
Logged In: YES
user_id=1287981
Yes, fcon.c needs the source files.
This is exactly what I mean whit:
"Regarding to the problem in compiling I've found that I
dind't use all the files: the *.c of the system has to be
compiled together with fcon.c!"
Obviously, instead of @fc I would prefer the embedded
command "us()", but I've not managed yet to make it work.
Logged In: YES
user_id=176505
Did you try the new 0.9.8 version? I just retried us() and
it works for me there (use it quite regularly in my own
research, that helps too).
The old AUTO versions assumed that "." was in your path,
which many setups no longer do by default. In 0.9.8 this
AUTO no longer requires this (at least if you use either the
@ commands or the python CLUI).