Ah, that should do nicely! Thanks much Brad!
-- John
Bradley Lucier wrote:
On Feb 9, 2006, at 9:03 PM, Bradley Lucier wrote:
euler-69% gcc -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fomit-frame-pointer -fPIC -fno-common -mieee-fp -I/pkgs/Gambit-C/include -L/pkgs/Gambit-C/lib -D___SINGLE_HOST _meroon.c linearalgebra.c linearalgebra_.c -o linearalgebra -lgambc -lm /tmp/ccXgPFhV.o(.text+0x8d1b3): In function `____20___meroon_2e_o1': : undefined reference to `___S_gambit' collect2: ld returned 1 exit status
For some reason it wasn't finding /pkgs/Gambit-C/lib/libgambc.a, this works:
euler-138% gcc -Wall -W -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fomit-frame-pointer -fPIC -fno-common -mieee-fp -I/pkgs/Gambit-C/include -L/pkgs/Gambit-C/lib -D___SINGLE_HOST _meroon.o linearalgebra.c linearalgebra_.c -o linearalgebra /pkgs/Gambit-C/lib/libgambc.a -ldl -lutil -lm euler-139% ./linearalgebra [ Meroon V3 Paques2001+1 $Revision: 1.1 $ ] #f64(4. 6.)
So you need to compile things that depend on meroon with compile-file interactively (I don't know why), and you need to link in _meroon.c with your other files:
euler-55% gsc Gambit Version 4.0 beta 17
(load "_meroon")
[ Meroon V3 Paques2001+1 $Revision: 1.1 $ ] "/export/users/lucier/programs/MeroonV3-2001Apr24/_meroon.o1"
(compile-file-to-c "linearalgebra")
#t
(link-incremental '("_meroon" "linearalgebra") "linearalgebra_.c")
You can precompile _meroon.c to _meroon.o if you like.
Brad