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

Unsolved external symbol ___libm_sse2_pow

Christer
Beginner
1,611 Views

In one project when lnking a static library (from Intel Fortran) into a C++ exe-file the following messages appeared :
Unsolved external symbol ___libm_sse2_pow
Unsolved external symbol ___libm_sse2_logf

The static library was created in Intel Fortran version 11.066 with these library depedencies:

ifconsol.lib libifport.lib libifcoremd.lib libirc.lib

The C++ compiler(linking my static library) is Visual Studio 2003 (Development Environment)

The linking on my computer with the C++ compiler was succesfull without any unresolved symbols (This was with VS 2005)
The linking to create the C++ program with my static library included was then tested on another computer without any installation of Intel Fortran. The error message "unresolved... "appeared on this computer. This was the computerwith VS 2003

Actually, I have no idea what to do?
I searched on internet and found absolutely nothing so maybe I have run into something very rare.

Any tip would be much appreciated!

0 Kudos
6 Replies
Steven_L_Intel1
Employee
1,611 Views
Add libmmd.lib to the list.
0 Kudos
Christer
Beginner
1,611 Views
Add libmmd.lib to the list.

Many thanks for your help, now I can walk home without worrying for tomorrow!

I did what you instructions said but I recieved these messages:
1>libmmd.lib(libmmd.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR already defined in libifcoremd.lib(libifcoremd.dll); second definition ignored
1>libmmd.lib(libmmd.dll) : warning LNK4221: no public symbols found; archive member will be inaccessible

Well, I thought it was "kind" warnings so I continued with the linking and it did work exactly as expected!!
0 Kudos
Steven_L_Intel1
Employee
1,611 Views
That's very strange. Can you attach a source program, or a ZIP of your project, that shows this? See instructions below for attaching.
0 Kudos
Christer
Beginner
1,611 Views
That's very strange. Can you attach a source program, or a ZIP of your project, that shows this? See instructions below for attaching.


Thanks for your help!
I have "stripped" my project to be as small as possible but still Iget the warning messages. The project is included in the attached zip-file
Version 11.0.66, Visual studio 2005

0 Kudos
Steven_L_Intel1
Employee
1,611 Views
This is a static library project. You should not be adding any other libraries to it.

I will note, however, that the default when building a static library project is to "disable default library search rules". If you are linking this in with more Fortran code, that's fine, but if you're linking it to C++ or some other language, I recommend changing Fortran > Libraries > Disable default library search rules to "No".
0 Kudos
Christer
Beginner
1,611 Views
This is a static library project. You should not be adding any other libraries to it.

I will note, however, that the default when building a static library project is to "disable default library search rules". If you are linking this in with more Fortran code, that's fine, but if you're linking it to C++ or some other language, I recommend changing Fortran > Libraries > Disable default library search rules to "No".

Thanks foryour help, then I have a little hope. I will try static library again (I switched to dll-file temporarily)!
0 Kudos
Reply