Skip to content

Problem when compile SWMM in LINUX  #1

@Pan-YANG

Description

@Pan-YANG

I am trying to compile SWMM 5.1.010 in university's HPC cluster running on x86_64-redhat-linux-gnu (64-bit). I followed the steps in the readme file, and deleted the "#Include direct.h" line in the swmm5.c file as suggested by JuanPi (http://stackoverflow.com/questions/6193607/cannot-find-direct-h).

Unfortunately the installation did not went well, and here are my compile results. Does anyone know why the two errors are prompted out? Thank you very much for all your kind help and assistances.

$ make
cc    -c -o swmm5.o swmm5.c
cc    -c -o climate.o climate.c
cc    -c -o controls.o controls.c
cc    -c -o culvert.o culvert.c
cc    -c -o datetime.o datetime.c
cc    -c -o dwflow.o dwflow.c
cc    -c -o dynwave.o dynwave.c
cc    -c -o error.o error.c
cc    -c -o exfil.o exfil.c
cc    -c -o findroot.o findroot.c
cc    -c -o flowrout.o flowrout.c
cc    -c -o forcmain.o forcmain.c
cc    -c -o gage.o gage.c
cc    -c -o gwater.o gwater.c
cc    -c -o hash.o hash.c
cc    -c -o hotstart.o hotstart.c
cc    -c -o iface.o iface.c
cc    -c -o infil.o infil.c
cc    -c -o inflow.o inflow.c
cc    -c -o input.o input.c
cc    -c -o inputrpt.o inputrpt.c
cc    -c -o keywords.o keywords.c
cc    -c -o kinwave.o kinwave.c
cc    -c -o landuse.o landuse.c
cc    -c -o lid.o lid.c
cc    -c -o lidproc.o lidproc.c
cc    -c -o link.o link.c
cc    -c -o massbal.o massbal.c
cc    -c -o mathexpr.o mathexpr.c
cc    -c -o mempool.o mempool.c
cc    -c -o node.o node.c
cc    -c -o odesolve.o odesolve.c
cc    -c -o output.o output.c
cc    -c -o project.o project.c
cc    -c -o qualrout.o qualrout.c
cc    -c -o rain.o rain.c
cc    -c -o rdii.o rdii.c
cc    -c -o report.o report.c
cc    -c -o roadway.o roadway.c
roadway.c:24: warning: useless storage class specifier in empty declaration
cc    -c -o routing.o routing.c
cc    -c -o runoff.o runoff.c
cc    -c -o shape.o shape.c
cc    -c -o snow.o snow.c
cc    -c -o stats.o stats.c
cc    -c -o statsrpt.o statsrpt.c
cc    -c -o subcatch.o subcatch.c
cc    -c -o surfqual.o surfqual.c
cc    -c -o table.o table.c
cc    -c -o toposort.o toposort.c
cc    -c -o transect.o transect.c
cc    -c -o treatmnt.o treatmnt.c
cc    -c -o xsect.o xsect.c
cc -o swmm5 -fopenmp -lm -lpthread swmm5.o climate.o controls.o culvert.o datetime.o dwflow.o dynwave.o error.o exfil.o findroot.o flowrout.o forcmain.o gage.o gwater.o hash.o hotstart.o iface.o infil.o inflow.o input.o inputrpt.o keywords.o kinwave.o landuse.o lid.o lidproc.o link.o massbal.o mathexpr.o mempool.o node.o odesolve.o output.o project.o qualrout.o rain.o rdii.o report.o roadway.o routing.o runoff.o shape.o snow.o stats.o statsrpt.o subcatch.o surfqual.o table.o toposort.o transect.o treatmnt.o xsect.o
/usr/lib64/../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
swmm5.o: In function `swmm_open':
swmm5.c:(.text+0x197): undefined reference to `_fpreset'
collect2: ld returned 1 exit status
make: *** [swmm5] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions