For Programmers: Free Programming Magazines  


Home > Archive > Fortran > March 2004 > Compiling modules on Absoft









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Compiling modules on Absoft
Oodini

2004-03-29, 9:46 am

Hello,

Here is a small module:

-------------------------------------------
MODULE ASCII

CHARACTER, PARAMETER:: &
BEL = ACHAR(7), &
BS = ACHAR(8), &
HT = ACHAR(9), &
LF = ACHAR(10), &
SO = ACHAR(14), &
SI = ACHAR(15), &
ESC = ACHAR(27), &
DEL = ACHAR(127)

END MODULE
-------------------------------------------

Whatever the module, I get the following messages from the compiler:

-------------------------------------------
# link warning: file not needed for link - F:\ABSOFT70\LIB\FIO.LIB
# link warning: file not needed for link - F:\ABSOFT70\LIB\FMATH.LIB
# link warning: file not needed for link - F:\ABSOFT70\LIB\F90MATH.LIB
# link warning: file not needed for link - F:\ABSOFT70\LIB\COMDLG32.LIB
# link error: undefined symbol - _main
# FIRST REF IN - F:\ABSOFT70\LIB\ABSRT0.LIB(mainCRT.obj)

Process failed!!! Compilation aborted.
-------------------------------------------

Any idea ? Thanks.

Alois Steindl

2004-03-29, 10:36 am

Oodini <nospam_svdbg@free.fr> writes:

> Hello,
>
> Here is a small module:
>
> -------------------------------------------
> MODULE ASCII
>
> CHARACTER, PARAMETER:: &
> BEL = ACHAR(7), &
> BS = ACHAR(8), &
> HT = ACHAR(9), &
> LF = ACHAR(10), &
> SO = ACHAR(14), &
> SI = ACHAR(15), &
> ESC = ACHAR(27), &
> DEL = ACHAR(127)
>
> END MODULE
> -------------------------------------------
>
> Whatever the module, I get the following messages from the compiler:
>
> -------------------------------------------
> # link warning: file not needed for link - F:\ABSOFT70\LIB\FIO.LIB
> # link warning: file not needed for link - F:\ABSOFT70\LIB\FMATH.LIB
> # link warning: file not needed for link - F:\ABSOFT70\LIB\F90MATH.LIB
> # link warning: file not needed for link - F:\ABSOFT70\LIB\COMDLG32.LIB
> # link error: undefined symbol - _main
> # FIRST REF IN - F:\ABSOFT70\LIB\ABSRT0.LIB(mainCRT.obj)
>
> Process failed!!! Compilation aborted.
> -------------------------------------------
>
> Any idea ? Thanks.


Hello,
it's always a good idea to read the manual for your compiler. Since
your code doesn't contain a program unit, the compiler will not be
able to generate an executable from it. So you will have to omit the
linker step and produce only an object file. The details are available
from your manuals.
Alois
Oodini

2004-03-29, 10:36 am

> Hello,
> it's always a good idea to read the manual for your compiler. Since
> your code doesn't contain a program unit, the compiler will not be
> able to generate an executable from it. So you will have to omit the
> linker step and produce only an object file. The details are available
> from your manuals.
> Alois


OK, thanks for the help !

I thought that the button "Compile" meant only "compile"...

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com