- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
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__'
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__'
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Add the new switch -nofor_main to the build.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you.
David
David

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page