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

ifort: Command line warning: unrecognized source type 'BUILD_HDF5_DLL'; object file assumed

fangguo
Beginner
1,716 Views
I am building HDF5 DLL fortran libraries with intel fortran integration with visual c++ .Net 2003. All of the static library can be built with intel fortran sucessfully. But when I am trying to build DLL fortran libraries, the following warnings happened:

ifort: Command line warning: unrecognized source type 'BUILD_HDF5_DLL'; object file assumed

Although it says the library was built sucessfully, there is not library file created at all.
Anybody can help? Thanks a lot!
Fang
0 Kudos
4 Replies
greldak
Beginner
1,716 Views
Are you sure you have named your library correctly it looks as if it should be called
BUILD_HDF5.DLL rather than
BUILD_HDF5_DLL
Without the extension .DLL it would seem unlikely that it would be recognised as a DLL or possibly that the linker would expect to find a file called BUILD_HDF5_DLL.DLL which I presume doesn't exist.
0 Kudos
Steven_L_Intel1
Employee
1,716 Views
You would never have a DLL on the ifort command line, anyway, except as an output file specification.
0 Kudos
fangguo
Beginner
1,716 Views
Thank you twoso much for your quickresponse.
I found the problem. I put BUILD_HDF5_DLL in the intel fortranpreprocessor definitions. I think intel fortran can not recognize space as a delimiter between symbols. I replace the space with semicolon, it works when I build the release version. But when I build the debug version, it crashed with a window poped up. The error message said:
Run time Error!
Program Microsoft../../devenv.exe
Looking forward to help!
Fang
0 Kudos
Steven_L_Intel1
Employee
1,716 Views
The delimiter issue is a change in VS.NET - has nothing to do with the compiler.

There's not enough information to help with the VS.NET failure. Perhaps you should submit this to Intel Premier Support with a ZIP file of your project.
0 Kudos
Reply