Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Intel Visual Fortran Compile/Link error

Status
Not open for further replies.

amsgordon

Programmer
Apr 14, 2013
1
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top