- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
I am trying to link some object files to create a executable file. The source code contains only fortran. the source files were compiled without any problem. But i am not able to link them as i am getting this error.
libifcoremt.lib(libifcoremain.obj) : error LNK2019: unresolved external symbol _
MAIN__ referenced in function _main
test.exe : fatal error LNK1120: 1 unresolved externals
any help would be very much appreciated
--kskr
libifcoremt.lib(libifcoremain.obj) : error LNK2019: unresolved external symbol _
MAIN__ referenced in function _main
test.exe : fatal error LNK1120: 1 unresolved externals
any help would be very much appreciated
--kskr
- Etiquetas:
- Intel® Fortran Compiler
Enlace copiado
3 Respuestas
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
This means that you do not have a main program, just subroutines. You will need a main program (starts with either a PROGRAM statement or something other than SUBROUTINE, FUNCTION, MODULE or BLOCK DATA.)
Most likely you need to create a main program that calls a subroutine.
Most likely you need to create a main program that calls a subroutine.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Steve is on vacation, so let me answer.
Your .f file looks fine. Are you linking on the command line? If so you should try linking with ifort (it will call the Microsoft linker). If you are linking from inside Microsoft Visual Studio, make sure your project includes and builds all the files. For some custom advice you can file an issue at premier.intel.com with a complete test case (inluding build instructions or a complete project.
Wendy D.
Intel Developer Support

Responder
Opciones de temas
- Suscribirse a un feed RSS
- Marcar tema como nuevo
- Marcar tema como leído
- Flotar este Tema para el usuario actual
- Favorito
- Suscribir
- Página de impresión sencilla