Getting started with Intel Virtual Fortran. Error in compiling or linking.
Unreferenced call from _TmainCRTStartup calls _winmain@16 file
file=LIBCMTD.lib Does anyone know what this is ?
Do you have a program section? winmain is the starting point in your program. libcmtd is a multi-threaded debug version that does not use the runtime dlls.
Apparently you want to do a windows-program.
Check your reference on how you must name your routines.
The routine window needs as an entry point is a function winmain. In the Compaq compiler, which is the ancestor of the intel compiler, this looks like the following snippet. I guess if this was missing, an error message like yours would be created.
Code:
integer function winmain (hInstance, hPrevInstance, lpszCmdLine, nCmdShow)
!DEC$ IF DEFINED(_X86_)
!DEC$ ATTRIBUTES STDCALL, ALIAS : '_WinMain@16' :: WinMain
!DEC$ ELSE
!DEC$ ATTRIBUTES STDCALL, ALIAS : 'WinMain' :: WinMain
!DEC$ ENDIF
use dfwin
The compiler directives (!DEC ....) may look different now. Same to the library dfwin which is needed to define all the constants and procedures Windows needs to execute.
The optimist believes we live in the best of all possible worlds - the pessimist fears this might be true.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.