Doubly defined symbol main in ifort 8.0

Doubly defined symbol main in ifort 8.0

A program that worked with ifc gets a double defined symbol, 'main' error message. The symbol is now defined in library libifcore.a. I have a 'c' main program that has the conflicting symbol that calls the fortran. What should I do? Thanks, David

/usr/local/Intel/lib/for_main.o(.text+0x0): In function `main':
: multiple definition of `main'
mmio_convert.o(.text+0x0): first defined here
/usr/bin/ld: Warning: size of symbol `main' changed from 1438 to 42 in /usr/local/Intel/lib/for_main.o
/usr/local/Intel/lib/for_main.o(.text+0x1c): In function `main':
: undefined reference to `MAIN__'

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Add the new switch -nofor_main to the build.

Retired 12/31/2016

Thank you.

Leave a Comment

Please sign in to add a comment. Not a member? Join today