Thread View: comp.os.linux.development.apps
1 messages
1 total messages
Started by Jauder Ho
Fri, 08 Sep 1995 14:34
HELP wanted with compiling some C code on Linux
Author: Jauder Ho
Date: Fri, 08 Sep 1995 14:34
Date: Fri, 08 Sep 1995 14:34
71 lines
3404 bytes
3404 bytes
I have recently taken over development of a simulation project
from another person and am currently trying to make heads or tails of his
project. He had header files alll over the place and I have tried to
clean it up and put it in the smae directory. I have gotten it to the
point where it compiles on a SunOS 4.1.3 machine using gcc. However since
I would like to work on it at home, I tried compiling it on my Linux box.
First of all, apparently Gnu make does not like ${PROGS}: $${@}.o ${C_LIBS}
so I chenged that to ${PROGS}: ${OBJS} ${C_LIBS}. Now the library
compiles but when it starts to compile cloc.c, it starts returning errors
like crazy. I am including the output from make below. If someone can
help me, It will be much appreciated.
You can try to compile the package by getting it from
http://www.umich.edu/~jauderho/cluster.tar.gz
Output from make
================
gcc -O2 -c cloc.c
gcc -O2 -c corfunc.c
gcc -O2 -c cmass.c
gcc -O2 -c cvel.c
gcc -O2 -c killcrowd.c
gcc -O2 -c hstat.c
gcc -O2 -c galax.c
gcc -O2 -c pbdf.c
gcc -O2 -c tbdf.c
gcc -O2 -c histbdf.c
gcc -O2 cloc.o corfunc.o cmass.o cvel.o killcrowd.o hstat.o galax.o
pbdf.o tbdf.o histbdf.o clustlib.a -lm -o cloc
corfunc.o(.text+0x270): multiple definition of `main'
cloc.o(.text+0x150): first defined here
cmass.o(.text+0xa0): multiple definition of `main'
cloc.o(.text+0x150): first defined here
cvel.o(.data+0x0): multiple definition of `headersize'
cmass.o(.text+0x2): first defined here
cvel.o(.text+0xf0): multiple definition of `main'
cloc.o(.text+0x150): first defined here
killcrowd.o(.text+0x0): multiple definition of `headersize'
cmass.o(.text+0x2): first defined here
killcrowd.o(.text+0x130): multiple definition of `main'
cloc.o(.text+0x150): first defined here
killcrowd.o(.text+0x8f0): multiple definition of `dist1'
corfunc.o(.text+0xd90): first defined here
hstat.o(.text+0x40): multiple definition of `main'
cloc.o(.text+0x150): first defined here
galax.o(.text+0x0): multiple definition of `main'
cloc.o(.text+0x150): first defined here
pbdf.o(.text+0xe0): multiple definition of `main'
cloc.o(.text+0x150): first defined here
tbdf.o(.text+0x110): multiple definition of `main'
cloc.o(.text+0x150): first defined here
histbdf.o(.text+0x0): multiple definition of `floatsize'
cmass.o(.text+0x0): first defined here
histbdf.o(.text+0x160): multiple definition of `main'
cloc.o(.text+0x150): first defined here
corfunc.o(.text+0x47f): undefined reference to `nint'
corfunc.o(.text+0xb6e): undefined reference to `isnormal'
corfunc.o(.text+0xb94): undefined reference to `isnormal'
histbdf.o(.text+0x48c): undefined reference to `nint'
histbdf.o(.text+0x564): undefined reference to `nint'
make: *** [cloc] Error 1
0:12.62 used, 8.430u, 2.410s, cpu 85.8%, 0 swaps, 0 rds, 0 wrts, pgs: 0
avg, 0 max
--
Jauder Ho
Chaos Theory Group, Physics
jauderho@umich.edu
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads