- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I try to link with ifort and I obtain the following problem.
ifort clq -shared-intel -nofor-main libpass2.a pass2lib.o sysdep.o models.o
/usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
Have you an idea how to solve this problem.
My config is:
X86
unbuntu 8.04
gcc 4.2
Thanks
ifort clq -shared-intel -nofor-main libpass2.a pass2lib.o sysdep.o models.o
/usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
Have you an idea how to solve this problem.
My config is:
X86
unbuntu 8.04
gcc 4.2
Thanks
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You've used -nofor_main which says that the main program is not in Fortran (usually C or C++). Do you have such a thing among the objects you linked?

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