- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
dear all,
i get the following error when compiling a file for my LMTO bassed package
ifort -cw mod_dimart.f
ifort: command line warning #10156: ignoring option '-c'; no argument required
/opt/intel/Compiler/11.1/069/lib/ia32/for_main.o: In function `main':
/export/users/nbtester/x86linux_nightly/branch-11_1/20100204_010000/libdev/frtl/src/libfor/for_main.c:(.text+0x4d): undefined reference to `MAIN__'
Please advice me
Regards
N D Senthil Ram
i get the following error when compiling a file for my LMTO bassed package
ifort -cw mod_dimart.f
ifort: command line warning #10156: ignoring option '-c'; no argument required
/opt/intel/Compiler/11.1/069/lib/ia32/for_main.o: In function `main':
/export/users/nbtester/x86linux_nightly/branch-11_1/20100204_010000/libdev/frtl/src/libfor/for_main.c:(.text+0x4d): undefined reference to `MAIN__'
Please advice me
Regards
N D Senthil Ram
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
-cw is not a valid option. You may want just -c , which says to compile only and do not link.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Earlier I've tried with -c alone it didn't work out but due to some error ihappenedto restart my pc but I got it alright
I got it successful
by the way how should i link all the *.o file to one main.exe file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ifort -o main obj1.o obj2.o obj3.o
will do it, giving you an executable named "main". You can replace "main" with whatever you want. (.exe is usually a Windows thing.)
You can also combine the compile and link without using -c, like this:
ifort -o main file1.f90 file2.f90 file3.f90
will do it, giving you an executable named "main". You can replace "main" with whatever you want. (.exe is usually a Windows thing.)
You can also combine the compile and link without using -c, like this:
ifort -o main file1.f90 file2.f90 file3.f90

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