Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 2797

ldexpf already defined linker error

$
0
0

Hi,

I'm compiling a particular C++ file (Math.cpp) with /Od and I'm getting the following linker error.  It links successfully with /O1 or /O2.

I don't see any specific reference to "ldexpf" in the source so I'm not sure where it's coming from.  The source is confidential and proprietary so I cannot display it here, sorry.

libmmd.lib(libmmd.dll) : error LNK2005: ldexpf already defined in mylib.lib(Math.obj)

Doing a dumpbin of the object file, I notice this.

SECTION HEADER #1
   .text name
       0 physical address
       0 virtual address
      70 size of raw data
  119A54 file pointer to raw data (00119A54 to 00119AC3)
  6CF9F9 file pointer to relocation table
       0 file pointer to line numbers
       1 number of relocations
       0 number of line numbers
60301020 flags
         Code
         COMDAT; sym= ldexpf
         4 byte align
         Execute Read

My environment is Windows 10 and Intel(R) C++ Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 15.0.6.285 Build 20151119

Thanks,

Lou

Thread Topic: 

Help Me

Viewing all articles
Browse latest Browse all 2797