Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

libifcoremt.lib

Gerald_Duff
Beginner
2,830 Views
Hello,

I get this error message when linking my program

Unresolved external symbol _main_ (in the file libifcoremt.lib, or libifcoremdd.lib depending on the librairy options)

The probem does not appear in release mode... Any idea where does the problem come from ?


PS : I am using the version v12.0.0.104


0 Kudos
11 Replies
Steven_L_Intel1
Employee
2,830 Views
Would you please attach the .vfproj file for your project? Something is set incorrectly in the debug configuration.
0 Kudos
Gerald_Duff
Beginner
2,830 Views
Here is the .vfproj

Regards,

Gerald
0 Kudos
Steven_L_Intel1
Employee
2,830 Views
Hmm. Nothing I can see wrong there. Next please attach the Buildlog.htm from a rebuild of the Debug configuration.
0 Kudos
Gerald_Duff
Beginner
2,830 Views
Here is a build log :
0 Kudos
Steven_L_Intel1
Employee
2,830 Views
Ok - this is a bit different from what you posted before.

This error means that none of the sources that were compiled include a main program. Which source do you think has the main program?
0 Kudos
Gerald_Duff
Beginner
2,830 Views
Ok. The main program is the file HSprv.f90
0 Kudos
Steven_L_Intel1
Employee
2,830 Views
Would you please attach that file? The linker doesn't think it has the main program.
0 Kudos
Gerald_Duff
Beginner
2,830 Views
Here is the main program. As it compiles fine with "release" options I expected something in the compilation parameters ?

Regards,
0 Kudos
Steven_L_Intel1
Employee
2,830 Views
Puzzling. How about attaching the HSprv.obj from the Debug folder? or if you don't mind, ZIP the project and attach it ti a reply.
0 Kudos
Steven_L_Intel1
Employee
2,830 Views
Gerald,

Thanks for the project. There were some routines missing (CHARSEPA, for example), but I commented out the calls to that and was able to build the Debug configuration using Update 1 to Visual Fortran Composer XE 2011. Update 2 should be available later this week. I did get an error building with the original release, which is what you are using.

I suggest that you download and install Update 2 when it becomes available and do a Rebuild (not just a Build) of the project. If you are in a hurry, go ahead and download update 1 and install that, but it's a big file and you may want to wait a couple of days for Update 2.
0 Kudos
Gerald_Duff
Beginner
2,830 Views
Thanks, I will wait for the new update.
0 Kudos
Reply