[Scons-users] intel fortran on windows
Nikola Radovanovic
nikola.radovanovic at schneider-electric-dms.com
Fri Mar 1 04:44:10 EST 2013
solved. in case anyone else stumbles upon the same issue, here is the recipe:
env = Environment(FORTRAN = 'ifort', ENV = os.environ, \
tools = ['fortran', 'default', 'mslink', 'ifort'], \
F90FLAGS = '-fpp', \
F90PATH = path to *.mod files, \
FORTRANMODDIRPREFIX = '/module:', \
FORTRANMODDIR = '${TARGET.dir}', \
LIBPATH = path to libs, \
LIBS = list of libs to be likeg against, \
LINK = 'link.exe', \
MSVC_USE_SCRIPT = path to proper vcvars bat script)
env['LINKCOM'] = [env['LINKCOM'], 'mt.exe -nologo -manifest ${TARGET}.manifest -outputresource:$TARGET;1']
env['SHLINKCOM'] = [env['SHLINKCOM'], 'mt.exe -nologo -manifest ${TARGET}.manifest -outputresource:$TARGET;2']
env.Append(LINKFLAGS = ['/NOLOGO', '/MANIFEST'])
i also had problem in fortran code (didnt put !DEC$ATTRIBUTES STDCALL, DLLEXPORT, DECORATE, ALIAS: "SomeExportedFunc":: SomeExportedFunc )
best regards
On 02/28/2013 03:01 PM, Nikola Radovanovic wrote:
hi all,
i'm having trouble to use intel fortran on windows.
here is (very basic version of) my SConstruct:
env = Environment(FORTRAN = 'ifort', ENV = os.environ, \
tools = ['fortran','default','ifort'], \
F90FLAGS = '-fpp', \
FORTRANMODDIRPREFIX = '/module:', \
FORTRANMODDIR = '${TARGET.dir}')
env.Program('test', ['main.f90'])
end here is the output:
E:\temp_ifort>scons -Q
ifort -object:main.obj -c -fpp /module:. main.f90
Intel(R) Visual Fortran Compiler Professional for applications running on IA-32,
Version 11.0 Build 20090131 Package ID: w_cprof_p_11.0.072
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
link /nologo /OUT:test.exe main.obj
'embedManifestExeCheck' is not recognized as an internal or external command,
operable program or batch file.
scons: *** [test.exe] Error 1
.i know that i can use mslink tool (link.exe form VS 2005), but if i do so: when building dll's - i dont get the output of /implib if i dont have a *.def file
please help anyone...
--
__________________________________________________________________________________________________________________
Nikola Radovanovic | Schneider Electric DMS NS | Smart Grid IT | SERBIA | CPASv2 team deputy
Phone: +381 (0)21 488 3633 | Fax: +381 (0)21 488 3789 | Mobile: +381 (0)64 29 74 528
Email: nikola.radovanovic at schneider-electric-dms.com<mailto:nikola.radovanovic at schneider-electric-dms.com> | Site: www.schneider-electric-dms.com<http://www.schneider-electric-dms.com/> | Address: Narodnog fronta 25A-D, 21000 Novi Sad
*** Please consider the environment before printing this e-mail
_______________________________________________
Scons-users mailing list
Scons-users at scons.org<mailto:Scons-users at scons.org>
http://four.pairlist.net/mailman/listinfo/scons-users
--
__________________________________________________________________________________________________________________
Nikola Radovanovic | Schneider Electric DMS NS | Smart Grid IT | SERBIA | CPASv2 team deputy
Phone: +381 (0)21 488 3633 | Fax: +381 (0)21 488 3789 | Mobile: +381 (0)64 29 74 528
Email: nikola.radovanovic at schneider-electric-dms.com<mailto:nikola.radovanovic at schneider-electric-dms.com> | Site: www.schneider-electric-dms.com<http://www.schneider-electric-dms.com/> | Address: Narodnog fronta 25A-D, 21000 Novi Sad
*** Please consider the environment before printing this e-mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20130301/84f715bc/attachment.html>
More information about the Scons-users
mailing list